mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 14:15:29 +02:00
Fix #1611
This commit is contained in:
parent
9e65a005b8
commit
bc917a4d85
@ -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]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user