only do etherlike for the port if etherlike data has been returned (should improve poller speed a fair bit on some devices)

git-svn-id: http://www.observium.org/svn/observer/trunk@1468 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-23 18:23:21 +00:00
parent 538e96462f
commit d402965ae8

View File

@ -1,6 +1,7 @@
<?php
if($port_stats[$device[device_id]][$port[ifIndex]] && $port['ifType'] == "ethernetCsmacd") { // Check to make sure Port data is cached.
if($port_stats[$device[device_id]][$port[ifIndex]] && $port['ifType'] == "ethernetCsmacd"
&& isset($port_stats[$device[device_id]][$port[ifIndex]]['dot3StatsIndex'])) { // Check to make sure Port data is cached.
$this_port = &$port_stats[$device[device_id]][$port[ifIndex]];