don't try to add bogus addresses then remove them again + small fixes and REMOVE DEBUG PRINT_R

git-svn-id: http://www.observium.org/svn/observer/trunk@3007 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-04-09 14:23:16 +00:00
parent 79f90c05f3
commit 9cea534c1b
3 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -143,7 +143,8 @@ foreach ($port_stats as $ifIndex => $port)
$ports[$ifIndex]['deleted'] = "0";
}
} else {
if($ports[$port['ifIndex']]['deleted'] != "1") {
if ($ports[$port['ifIndex']]['deleted'] != "1")
{
dbUpdate(array('deleted' => '1'), 'ports', '`interface_id` = ?', array($ports[$ifIndex]['interface_id']));
$ports[$ifIndex]['deleted'] = "1";
}