From af59e89b64d0ee114a75a177833cc5834ed663d3 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 11 Aug 2016 15:02:58 +0200 Subject: [PATCH] + Fix #462 --- hardware/pdu/emerson/snmp/mode/globalstatus.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hardware/pdu/emerson/snmp/mode/globalstatus.pm b/hardware/pdu/emerson/snmp/mode/globalstatus.pm index c9a747a3d..1eeb20634 100644 --- a/hardware/pdu/emerson/snmp/mode/globalstatus.pm +++ b/hardware/pdu/emerson/snmp/mode/globalstatus.pm @@ -154,9 +154,9 @@ sub manage_selection { my $result = $options{snmp}->map_instance(mapping => $mapping, results => $self->{results}, instance => $instance); my $name = defined($result->{lgpPduEntryUsrLabel}) && $result->{lgpPduEntryUsrLabel} ne '' ? $result->{lgpPduEntryUsrLabel} : $instance; - my $status = 'unknow'; + my $status = 'unknown'; foreach (keys %bitmap_status) { - if (($result->{lgpPduEntrySysStatus} & $_)) { + if ((int($result->{lgpPduEntrySysStatus}) & $_)) { $status = $bitmap_status{$_}; last; }