fix(mikrotik) units (#2308)
This commit is contained in:
parent
45f33dbd88
commit
ceeb21d3b1
|
@ -86,7 +86,7 @@ sub check {
|
||||||
if ($gauge_ok == 0 && defined($result->{mtxrHlCurrent}) && $result->{mtxrHlCurrent} =~ /[0-9]+/) {
|
if ($gauge_ok == 0 && defined($result->{mtxrHlCurrent}) && $result->{mtxrHlCurrent} =~ /[0-9]+/) {
|
||||||
check_current(
|
check_current(
|
||||||
$self,
|
$self,
|
||||||
value => $result->{mtxrHlCurrent} / 100,
|
value => $result->{mtxrHlCurrent} / 1000,
|
||||||
instance => 1,
|
instance => 1,
|
||||||
name => 'system'
|
name => 'system'
|
||||||
);
|
);
|
||||||
|
|
|
@ -116,7 +116,7 @@ sub check {
|
||||||
if ($gauge_ok == 0 && defined($result->{mtxrHlPower}) && $result->{mtxrHlPower} =~ /[0-9]+/) {
|
if ($gauge_ok == 0 && defined($result->{mtxrHlPower}) && $result->{mtxrHlPower} =~ /[0-9]+/) {
|
||||||
check_power(
|
check_power(
|
||||||
$self,
|
$self,
|
||||||
value => $result->{mtxrHlPower} / 100,
|
value => $result->{mtxrHlPower} / 10,
|
||||||
instance => 1,
|
instance => 1,
|
||||||
name => 'system'
|
name => 'system'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue