From e1fe05b129cd0883c8ca8cc3eda3e2fc4127fb33 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 12 Mar 2011 12:07:25 +0000 Subject: [PATCH] clean up ADSL poller maybe git-svn-id: http://www.observium.org/svn/observer/trunk@1826 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/port-adsl.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/polling/port-adsl.inc.php b/includes/polling/port-adsl.inc.php index ccfd41cd8..c0a444886 100755 --- a/includes/polling/port-adsl.inc.php +++ b/includes/polling/port-adsl.inc.php @@ -40,9 +40,9 @@ # adslAturPerfValidIntervals.1 = 0 # adslAturPerfInvalidIntervals.1 = 0 - if(isset($port_stats[$device['device_id']][$port['ifIndex']]['adslLineCoding'])) { // Check to make sure Port data is cached. + if(isset($port_stats[$port['ifIndex']]['adslLineCoding'])) { // Check to make sure Port data is cached. - $this_port = &$port_stats[$device['device_id']][$port['ifIndex']]; + $this_port = &$port_stats[$port['ifIndex']]; $rrdfile = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . safename("port-".$port['ifIndex']."-adsl.rrd"); @@ -113,5 +113,4 @@ echo("ADSL "); } - ?>