This commit is contained in:
garnier-quentin 2016-08-11 15:02:58 +02:00
parent c62ac8135d
commit af59e89b64
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}