more code cleanup

git-svn-id: http://www.observium.org/svn/observer/trunk@2517 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-20 14:22:34 +00:00
parent d864ce234f
commit dc0ebc7343
34 changed files with 775 additions and 763 deletions

View File

@@ -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