From 3b6e5c53610d4416c49d888281685c19b280515b Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Wed, 9 Jun 2010 17:39:44 +0000 Subject: [PATCH] more precision in the numbers under the voltage graph git-svn-id: http://www.observium.org/svn/observer/trunk@1113 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/graphs/voltage.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/includes/graphs/voltage.inc.php b/html/includes/graphs/voltage.inc.php index 79067cc4d..73f3e994d 100644 --- a/html/includes/graphs/voltage.inc.php +++ b/html/includes/graphs/voltage.inc.php @@ -4,20 +4,20 @@ $scale_min = "0"; include("common.inc.php"); - $rrd_options .= " COMMENT:' Last Max\\n'"; + $rrd_options .= " COMMENT:' Last Max\\n'"; $voltage = mysql_fetch_array(mysql_query("SELECT * FROM voltage where volt_id = '".mres($_GET['id'])."'")); $hostname = mysql_result(mysql_query("SELECT hostname FROM devices WHERE device_id = '" . $voltage['device_id'] . "'"),0); - $voltage['volt_descr_fixed'] = substr(str_pad($voltage['volt_descr'], 28),0,28); + $voltage['volt_descr_fixed'] = substr(str_pad($voltage['volt_descr'], 22),0,22); $rrd_filename = $config['rrd_dir'] . "/".$hostname."/" . safename("volt-" . $voltage['volt_descr'] . ".rrd"); $rrd_options .= " DEF:volt=$rrd_filename:volt:AVERAGE"; $rrd_options .= " AREA:volt#FFFF99"; $rrd_options .= " LINE1.5:volt#cc0000:'" . $voltage['volt_descr_fixed']."'"; - $rrd_options .= " GPRINT:volt:LAST:%3.0lfV"; - $rrd_options .= " GPRINT:volt:MAX:%3.0lfV\\\\l"; + $rrd_options .= " GPRINT:volt:LAST:%3.2lfV"; + $rrd_options .= " GPRINT:volt:MAX:%3.2lfV\\\\l"; ?>