Comma-separated number display
Brought to you by:
detach8
This is both a bug + feature request, about using the
(currently unused) sub comma_sep to make the Max: value
shown in the graphs more readable.
The current sub generates:
e.g. 1 / 12 / 123 / 1234 / 12,345
^^^^
e.g. 123,456 / 1234,567 / 12,345,678
^^^^^^^^
Some time ago, I tweaked my copy of 3.1 to fix this. I
haven't noticed any problems.
The diff below is for v3.2:
$ diff squid-graph squid-graph-tweaked
1129a1130
> $graphMax = comma_sep($graphMax);
1207c1208
< if ((($len - $i - 1)%3 == 0) && ($i >
0) && ($i < $len - 1)) {
---
> if ((($len - $i - 1)%3 == 0) && ($i <
$len - 1)) {
Logged In: NO
lkjljljl