log.dat - V2: cosmetical upgrade
Message ID | 20161022151832.2438-1-matthias.fischer@ipfire.org |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (hedwig.ipfire.org [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 8F6BD61E2B for <patchwork@ipfire.org>; Sat, 22 Oct 2016 17:18:47 +0200 (CEST) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 29C5A46A2; Sat, 22 Oct 2016 17:18:44 +0200 (CEST) Received: from Devel.localdomain (p5DD82631.dip0.t-ipconnect.de [93.216.38.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id E743A461A for <development@lists.ipfire.org>; Sat, 22 Oct 2016 17:18:42 +0200 (CEST) From: Matthias Fischer <matthias.fischer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] log.dat - V2: cosmetical upgrade Date: Sat, 22 Oct 2016 17:18:32 +0200 Message-Id: <20161022151832.2438-1-matthias.fischer@ipfire.org> X-Mailer: git-send-email 2.10.1 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
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(-)