mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more code cleanup
git-svn-id: http://www.observium.org/svn/observer/trunk@2517 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -293,7 +293,7 @@ foreach ($ports as $port)
|
||||
{ // If data has changed, build a query
|
||||
$port['update'][$oid] = $this_port[$oid];
|
||||
echo("PAgP ");
|
||||
log_event("$oid -> ".$this_port[$oid], $device, 'interface', $port['interface_id']);
|
||||
log_event("$oid -> ".$this_port[$oid], $device, 'interface', $port['interface_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -309,14 +309,14 @@ foreach ($ports as $port)
|
||||
if ($config['enable_ports_poe']) { include("port-poe.inc.php"); }
|
||||
|
||||
/// Do Alcatel Detailed Stats
|
||||
if($device['os'] == "aos") { include("port-alcatel.inc.php"); }
|
||||
if ($device['os'] == "aos") { include("port-alcatel.inc.php"); }
|
||||
|
||||
|
||||
// Update Database
|
||||
if (count($port['update']))
|
||||
{
|
||||
$updated = dbUpdate($port['update'], 'ports', '`interface_id` = ?', array($port['interface_id']));
|
||||
if($debug) { echo("$updated updated"); }
|
||||
if ($debug) { echo("$updated updated"); }
|
||||
}
|
||||
// End Update Database
|
||||
|
||||
|
Reference in New Issue
Block a user