Fix #1611
This commit is contained in:
parent
80c97f3130
commit
4b7a82442c
|
@ -63,6 +63,7 @@ sub check {
|
||||||
$divisor = 10;
|
$divisor = 10;
|
||||||
} elsif ($result->{amperageProbeType} =~ /amperageProbeTypeIsPowerSupplyWatts|amperageProbeTypeIsSystemWatts/) {
|
} elsif ($result->{amperageProbeType} =~ /amperageProbeTypeIsPowerSupplyWatts|amperageProbeTypeIsSystemWatts/) {
|
||||||
$unit = 'W';
|
$unit = 'W';
|
||||||
|
$divisor = 1;
|
||||||
}
|
}
|
||||||
$result->{amperageProbeReading} = (defined($result->{amperageProbeReading})) ? $result->{amperageProbeReading} / $divisor : 'unknown';
|
$result->{amperageProbeReading} = (defined($result->{amperageProbeReading})) ? $result->{amperageProbeReading} / $divisor : 'unknown';
|
||||||
$self->{output}->output_add(long_msg => sprintf("amperage '%s' status is '%s' [instance = %s] [state = %s] [value = %s]",
|
$self->{output}->output_add(long_msg => sprintf("amperage '%s' status is '%s' [instance = %s] [state = %s] [value = %s]",
|
||||||
|
|
Loading…
Reference in New Issue