diff --git a/html/includes/graphs/voltage.inc.php b/html/includes/graphs/voltage.inc.php
index 79067cc4da..73f3e994df 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";
?>