From a36204400e35bbd4addeaa4dc659a0f27c2859ce Mon Sep 17 00:00:00 2001 From: Thom Seddon Date: Fri, 8 Jan 2016 11:44:32 +0000 Subject: [PATCH] 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. --- html/includes/graphs/generic_data.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/includes/graphs/generic_data.inc.php b/html/includes/graphs/generic_data.inc.php index 46560b0368..047524ff96 100644 --- a/html/includes/graphs/generic_data.inc.php +++ b/html/includes/graphs/generic_data.inc.php @@ -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';