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
This commit is contained in:
Adam Amstrong
2010-07-28 16:48:30 +00:00
parent 6af535d5f6
commit f91db2a32d

View File

@ -109,6 +109,11 @@
$this_port['ifOutOctets'] = $this_port['ifHCOutOctets']; $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 /// Update IF-MIB data
foreach ($data_oids as $oid) { foreach ($data_oids as $oid) {
if ( $port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) { if ( $port[$oid] != $this_port[$oid] && !isset($this_port[$oid])) {