mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
@@ -10,14 +10,14 @@ include("common.inc.php");
|
||||
|
||||
$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";
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user