From f91db2a32d6020c72f71121fd72e83208e3b4f2b Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 28 Jul 2010 16:48:30 +0000 Subject: [PATCH] Overwrite ifSpeed with ifHighSpeed * 1M if ifSpeed > 1G. Thanks to Bill Fenner from Arista for the nudge :) git-svn-id: http://www.observium.org/svn/observer/trunk@1503 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/ports.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/polling/ports.inc.php b/includes/polling/ports.inc.php index 66a0128ba8..1b54b770d0 100755 --- a/includes/polling/ports.inc.php +++ b/includes/polling/ports.inc.php @@ -109,6 +109,11 @@ $this_port['ifOutOctets'] = $this_port['ifHCOutOctets']; } + if(is_numeric($this_port['ifHighSpeed']) && $this_port['ifSpeed'] > "1000000000") + { + $this_port['ifSpeed'] = $this_port['ifHighSpeed'] * 1000000; + } + /// Update IF-MIB data foreach ($data_oids as $oid) { if ( $port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) {