fix graph colours for volt and fan, optimize code

git-svn-id: http://www.observium.org/svn/observer/trunk@824 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-02-11 19:29:46 +00:00
parent b9996dd02c
commit f22282ca60
3 changed files with 3 additions and 12 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ include("common.inc.php");
$hostname = mysql_result(mysql_query("SELECT hostname FROM devices WHERE device_id = '" . $temperature['temp_host'] . "'"),0);
$temperature['temp_descr_fixed'] = str_pad($temperature['temp_descr'], 28);
$temperature['temp_descr_fixed'] = substr($temperature['temp_descr_fixed'],0,28);
$temperature['temp_descr_fixed'] = substr(str_pad($temperature['temp_descr'], 28),0,28);
$rrd_filename = $config['rrd_dir'] . "/".$hostname."/" . safename("temp-" . $temperature['temp_descr'] . ".rrd");