diff --git a/pandora_server/util/plugin/pandora_snmp_bandwidth.pl b/pandora_server/util/plugin/pandora_snmp_bandwidth.pl index 1111e8fadb..fc02d83f7c 100755 --- a/pandora_server/util/plugin/pandora_snmp_bandwidth.pl +++ b/pandora_server/util/plugin/pandora_snmp_bandwidth.pl @@ -230,12 +230,8 @@ sub prepare_tree { my $duplex = snmp_get(\%duplex_call); if (ref($duplex) eq "HASH") { -<<<<<<< Updated upstream - if (! exists($duplex->{'data'}) || $duplex->{'data'} eq '') { -======= - if ($duplex->{'data'} ne '2' && $duplex->{'data'} ne '3') { + if (! exists($duplex->{'data'}) || ($duplex->{'data'} ne '2' && $duplex->{'data'} ne '3')) { # Unknown duplex. ->>>>>>> Stashed changes $duplex = 0; } else { $duplex = int $duplex->{'data'};