From 73abfc33b6ad125b5092329684cdc4339d94156b Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Tue, 6 Jul 2010 14:52:56 +0000 Subject: [PATCH] fix to show health tab when device has temp sensors git-svn-id: http://www.observium.org/svn/observer/trunk@1309 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/device.php b/html/pages/device.php index 33733f372..f2d2b1e7f 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -48,7 +48,7 @@ if ((is_file($config['install_dir'] . "/html/pages/device/graphs/os-".$device['o } $health = mysql_result(mysql_query("select count(*) from storage WHERE device_id = '" . $device['device_id'] . "'"), 0) + - mysql_result(mysql_query("select count(temp_id) from temperature WHERE device_id = '" . $device['device_id'] . "'"), 0) + + mysql_result(mysql_query("select count(sensor_id) from sensors WHERE device_id = '" . $device['device_id'] . "'"), 0) + mysql_result(mysql_query("select count(*) from cempMemPool WHERE device_id = '" . $device['device_id'] . "'"), 0) + mysql_result(mysql_query("select count(*) from cpmCPU WHERE device_id = '" . $device['device_id'] . "'"), 0) + mysql_result(mysql_query("select count(*) from processors WHERE device_id = '" . $device['device_id'] . "'"), 0) +