Sort out dates and hours for table

This commit is contained in:
Brian Read 2024-12-30 14:27:35 +00:00
parent 382489ecac
commit a20b570e11
2 changed files with 3 additions and 2 deletions

View File

@ -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]})."%";

View File

@ -32,7 +32,7 @@ See http://www.contribs.org/bugzilla/show_bug.cgi?id=819
%changelog
* Mon Dec 30 2024 Brian Read <brianr@koozali.org> 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 <brianr@koozali.org> 1.1-18.sme
- Pull in python re-write from SME11 dev [SME: ]