increment $polled_devices

git-svn-id: http://www.observium.org/svn/observer/trunk@2849 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-01-25 05:50:21 +00:00
parent 52d5001a90
commit 99f58f2da1
2 changed files with 1 additions and 3 deletions

View File

@@ -205,8 +205,6 @@ function poll_device($device, $options)
unset($storage_cache); // Clear cache of hrStorage ** MAYBE FIXME? **
unset($cache); // Clear cache (unify all things here?)
}
$polled_devices++;
}
?>

View File

@@ -97,8 +97,8 @@ if (!isset($query))
foreach (dbFetch($query) as $device)
{
$device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = '".$device['device_id']."'");
poll_device($device, $options);
$polled_devices++;
}
$poller_end = utime(); $poller_run = $poller_end - $poller_start; $poller_time = substr($poller_run, 0, 5);