cleanups in device graphs

git-svn-id: http://www.observium.org/svn/observer/trunk@1892 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-16 21:59:11 +00:00
parent 08d22bb42f
commit 2d5eee1c95
11 changed files with 78 additions and 76 deletions
@@ -3,13 +3,13 @@
include("includes/graphs/common.inc.php");
$device = device_by_id_cache($id);
if($_GET['width'] > "300") { $descr_len = "40"; } else { $descr_len = "22"; }
if ($_GET['width'] > "300") { $descr_len = "40"; } else { $descr_len = "22"; }
$rrd_options .= " -l 0 -E ";
$iter = "1";
$sql = mysql_query("SELECT * FROM sensors WHERE sensor_class='temperature' AND device_id = '$id' ORDER BY sensor_index");
$rrd_options .= " COMMENT:'".str_pad('',$descr_len)." Cur Min Max\\n'";
while($temperature = mysql_fetch_array($sql))
while ($temperature = mysql_fetch_array($sql))
{
switch ($iter)
{
@@ -48,5 +48,4 @@ while($temperature = mysql_fetch_array($sql))
$iter++;
}
?>