Remove redundant code from port-{adsl,etherlike,poe} polling submodules.

$this_port already gets defined within include/polling/ports.inc.php
  so there's no need to redefine it again in each submodule.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
This commit is contained in:
Maximilian Wilhelm
2016-02-03 21:14:25 +01:00
parent 5521002b37
commit ec5d0dfd89
3 changed files with 3 additions and 16 deletions
+1 -6
View File
@@ -1,11 +1,6 @@
<?php
if ($port_stats[$ifIndex] &&
$port['ifType'] == 'ethernetCsmacd' &&
isset($port_stats[$ifIndex]['dot3StatsIndex'])) {
// Check to make sure Port data is cached.
$this_port = &$port_stats[$ifIndex];
if ($this_port['dot3StatsIndex'] and $port['ifType'] == 'ethernetCsmacd') {
// TODO: remove legacy check?
$old_rrdfile = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('etherlike-'.$port['ifIndex'].'.rrd');
$rrd_file = get_port_rrdfile_path ($device['hostname'], $port_id, 'dot3');