From 3447cdabff371232bb774d95022771563ebfa010 Mon Sep 17 00:00:00 2001 From: Thomas Hochstein Date: Thu, 29 May 2025 17:42:20 +0200 Subject: [PATCH] Reformat Conf(TLH) for GroupStats only. Signed-off-by: Thomas Hochstein --- bin/gatherstats.pl | 57 +++++++++++++++++++++++----------------------- doc/ChangeLog | 2 +- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/bin/gatherstats.pl b/bin/gatherstats.pl index 15b7ad4..e900104 100755 --- a/bin/gatherstats.pl +++ b/bin/gatherstats.pl @@ -84,35 +84,6 @@ my ($Period) = &GetTimePeriod($OptMonth); &Bleat(2,"--month option has an invalid format - please use 'YYYY-MM' or ". "'YYYY-MM:YYYY-MM'!") if (!$Period or $Period eq 'all time'); -### reformat $Conf{'TLH'} -my $TLH; -if ($Conf{'TLH'}) { - # $Conf{'TLH'} is parsed as an array by Config::Auto; - # make a flat list again, separated by : - if (ref($Conf{'TLH'}) eq 'ARRAY') { - $TLH = join(':',@{$Conf{'TLH'}}); - } else { - $TLH = $Conf{'TLH'}; - } - # strip whitespace - $TLH =~ s/\s//g; - # add trailing dots if none are present yet - # (using negative look-behind assertions) - $TLH =~ s/(?