fix some polling things. maybe.

git-svn-id: http://www.observium.org/svn/observer/trunk@213 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-03-31 13:08:17 +00:00
parent 5499871873
commit a8a7e04f1f
7 changed files with 56 additions and 69 deletions

View File

@@ -31,7 +31,7 @@ if($argv[1] == "--device" && $argv[2]) {
$devices_polled = 0;
$device_query = mysql_query("SELECT * FROM `devices` WHERE status = '1' $where");
$device_query = mysql_query("SELECT * FROM `devices` WHERE status = '1' $where ORDER BY device_id DESC");
while ($device = mysql_fetch_array($device_query)) {
echo($device['hostname'] ."\n");