This commit is contained in:
garnier-quentin 2019-08-07 12:59:22 +02:00
parent 80c97f3130
commit 4b7a82442c
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ sub check {
$divisor = 10;
} elsif ($result->{amperageProbeType} =~ /amperageProbeTypeIsPowerSupplyWatts|amperageProbeTypeIsSystemWatts/) {
$unit = 'W';
$divisor = 1;
}
$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]",