refactor: Added support for dskTable in UCD-SNMP-MIB (#4993)

This commit is contained in:
Neil Lathwood
2016-11-21 07:08:38 +00:00
committed by GitHub
parent bc15d74cf1
commit 42123010c8
5 changed files with 52 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ $rrd_options .= ' AREA:perc#'.$background['right'].':';
$rrd_options .= ' LINE1.25:perc#'.$background['left'].":'$descr'";
$rrd_options .= ' GPRINT:size:LAST:%6.2lf%sB';
$rrd_options .= ' GPRINT:free:LAST:%6.2lf%sB';
$rrd_options .= " GPRINT:perc:LAST:%5.2lf%%\\\\n";
$rrd_options .= " GPRINT:perc:LAST:%5.2lf%%\\n";
if ($_GET['previous']) {
$descr = rrdtool_escape('Prev '.$storage['storage_descr'], 12);
@@ -48,5 +48,5 @@ if ($_GET['previous']) {
$rrd_options .= ' LINE1.25:percX#'.$colour.":'$descr'";
$rrd_options .= ' GPRINT:sizeX:LAST:%6.2lf%sB';
$rrd_options .= ' GPRINT:freeX:LAST:%6.2lf%sB';
$rrd_options .= " GPRINT:percX:LAST:%5.2lf%%\\\\n";
$rrd_options .= " GPRINT:percX:LAST:%5.2lf%%\\n";
}