mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix coding style part 2
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
<?php
|
||||
$scale_min = "0";
|
||||
$scale_max = "100";
|
||||
$scale_min = '0';
|
||||
$scale_max = '100';
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_options .= " COMMENT:' Cur Max\\n'";
|
||||
|
||||
$colour = toner2colour($toner['toner_descr']);
|
||||
if ($colour['left'] == NULL) { $colour['left']="CC0000"; }
|
||||
if ($colour['left'] == null) {
|
||||
$colour['left'] = 'CC0000';
|
||||
}
|
||||
|
||||
$descr = substr(str_pad($toner['toner_descr'],26),0,26);
|
||||
$descr = substr(str_pad($toner['toner_descr'], 26), 0, 26);
|
||||
|
||||
$background = get_percentage_colours(100-$toner['toner_current']);
|
||||
$background = get_percentage_colours((100 - $toner['toner_current']));
|
||||
|
||||
$rrd_options .= " DEF:toner" . $toner['toner_id'] . "=".$rrd_filename.":toner:AVERAGE ";
|
||||
$rrd_options .= ' DEF:toner'.$toner['toner_id'].'='.$rrd_filename.':toner:AVERAGE ';
|
||||
|
||||
$rrd_options .= " LINE1:toner" . $toner['toner_id'] . "#" . $colour['left'] . ":'" . $descr . "' ";
|
||||
$rrd_options .= ' LINE1:toner'.$toner['toner_id'].'#'.$colour['left'].":'".$descr."' ";
|
||||
|
||||
$rrd_options .= " AREA:toner" . $toner['toner_id' ] . "#" . $background['right'] . ":";
|
||||
$rrd_options .= " GPRINT:toner" . $toner['toner_id'] . ":LAST:'%5.0lf%%'";
|
||||
$rrd_options .= " GPRINT:toner" . $toner['toner_id'] . ":MAX:%5.0lf%%\\\\l";
|
||||
|
||||
?>
|
||||
$rrd_options .= ' AREA:toner'.$toner['toner_id'].'#'.$background['right'].':';
|
||||
$rrd_options .= ' GPRINT:toner'.$toner['toner_id'].":LAST:'%5.0lf%%'";
|
||||
$rrd_options .= ' GPRINT:toner'.$toner['toner_id'].':MAX:%5.0lf%%\\\\l';
|
||||
|
Reference in New Issue
Block a user