From 4b7a82442c5f2d048faa4ebda55bff30114eae62 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Wed, 7 Aug 2019 12:59:22 +0200 Subject: [PATCH] Fix #1611 --- hardware/server/dell/idrac/snmp/mode/components/amperage.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/server/dell/idrac/snmp/mode/components/amperage.pm b/hardware/server/dell/idrac/snmp/mode/components/amperage.pm index 8eb118bf4..b01969ba9 100644 --- a/hardware/server/dell/idrac/snmp/mode/components/amperage.pm +++ b/hardware/server/dell/idrac/snmp/mode/components/amperage.pm @@ -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]",