mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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]];
|
||||
|
||||
|
Reference in New Issue
Block a user