Explicitly show units for total in bit graphs

Previously the rest of the graph was in "bps", as indicated in the
legend, however the unit for the totals is "B" (bytes) - as only
the prefix (M, G, T) was shown for the totals it was not clear that
the unit was different.
This commit is contained in:
Thom Seddon
2016-01-08 11:44:32 +00:00
parent f0098d7d07
commit a36204400e

View File

@@ -123,9 +123,9 @@ if ($config['rrdgraph_real_95th']) {
$rrd_options .= " GPRINT:95thhigh:\"%30.2lf%s\\n\"";
}
$rrd_options .= " GPRINT:tot:'Total %6.2lf%s'";
$rrd_options .= " GPRINT:totin:'(In %6.2lf%s'";
$rrd_options .= " GPRINT:totout:'Out %6.2lf%s)\\l'";
$rrd_options .= " GPRINT:tot:'Total %6.2lf%sB'";
$rrd_options .= " GPRINT:totin:'(In %6.2lf%sB'";
$rrd_options .= " GPRINT:totout:'Out %6.2lf%sB)\\l'";
$rrd_options .= ' LINE1:95thin#aa0000';
$rrd_options .= ' LINE1:d95thout#aa0000';