fix polling and displaying of etherlike statistics

git-svn-id: http://www.observium.org/svn/observer/trunk@1672 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-12 12:51:59 +00:00
parent a5a41d5097
commit 3114f4558b
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
if($port_stats[$port['ifIndex']] && $port['ifType'] == "ethernetCsmacd"
&& isset($port_stats[$port['ifIndex']]['dot3StatsIndex'])) { // Check to make sure Port data is cached.
$this_port = &$port_stats[$device[device_id]][$port[ifIndex]];
$this_port = &$port_stats[$port[ifIndex]];
$old_rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("etherlike-".$port['ifIndex'].".rrd");
$rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-".$port['ifIndex']."-dot3.rrd");