diff --git a/root/usr/bin/mailstats.pl b/root/usr/bin/mailstats.pl index 0a60029..76dbe5f 100644 --- a/root/usr/bin/mailstats.pl +++ b/root/usr/bin/mailstats.pl @@ -1090,10 +1090,11 @@ if ( !$disabled ) { } $ncateg = 0; + my $table_start_time = $start; while ( $ncateg < @categs) { if ($finaldisplay[$ncateg]){ if ($ncateg == 0) { - $Values .= strftime( "%F, %H", localtime( $hour * 3600 ) )." " + $Values .= strftime( "%F, %H", localtime( $table_start_time + $hour * 3600 ) )." " } elsif ($ncateg == @categs-1) { #percentages in last column $Values .= sprintf('%'.($colwidth[$ncateg]-2).'.1f',$counts{$hour}{$categs[$ncateg]})."%"; diff --git a/smeserver-mailstats.spec b/smeserver-mailstats.spec index aebaf58..36e1d71 100644 --- a/smeserver-mailstats.spec +++ b/smeserver-mailstats.spec @@ -32,7 +32,7 @@ See http://www.contribs.org/bugzilla/show_bug.cgi?id=819 %changelog * Mon Dec 30 2024 Brian Read 1.1-19.sme -- Update mailstats.pl to accomodate change in log format for SME11 [SME: ] +- Update mailstats.pl to accomodate change in log format for SME11 [SME: 12841] * Fri Jun 07 2024 Brian Read 1.1-18.sme - Pull in python re-write from SME11 dev [SME: ]