mbox

log.dat - V2: cosmetical upgrade

Message ID 20161022151832.2438-1-matthias.fischer@ipfire.org
State Superseded
Headers

Message

Matthias Fischer Oct. 23, 2016, 2:18 a.m. UTC
  Hi,

Please note - this commit supersedes:
http://git.ipfire.org/?p=people/mfischer/ipfire-2.x.git;a=commit;h=7a0ff91e4bbf87fd336f743c0df95315c944083d

It has always bothered me that the 'Section' list under "System Logs / Settings" was
unsorted and you had to search for the wanted entry. You always get the wrong one first
or look at the wrong place or both...

So I took a deep look at http://perlmaven.com/how-to-sort-a-hash-in-perl.

What I did:
- Sorted 'my %sections' and 'my %trsections' for better readibility.
- Corrected some typos.
- Changed 'my %sections' output to an alphabetically sorted list.
- Added an entry for URLFilter Blacklist update.

V2: Fixed 'unbound' output.
Made second column (section) a bit wider, to fit with 'unbound' output.

Still unfixed:

'info:'-output from 'unbound' sometimes contains square brackets which leads to
this:

...
           unbound: [3724:0] info:
13:00:45   [25%]=2.5e-07            =7.5e-07
           median[50%]=5e-07 [75%]
...

It should look this way:

...
13:00:45	unbound: [3724:0] info: [25%]=2.5e-07 median[50%]=5e-07 [75%]	=7.5e-07
...

I don't know a fix for this, sorry...

Just cosmetics..again. ;-)

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
---
 html/cgi-bin/logs.cgi/log.dat | 68 ++++++++++++++++++++++---------------------
 1 file changed, 35 insertions(+), 33 deletions(-)