From: Martyn Smith Date: Thu, 29 May 2008 02:08:28 +0000 (+1200) Subject: Fixed a bug in daily subtotals X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b5e990b44fe803ab184eed16790cc08afde91029;p=tks.git Fixed a bug in daily subtotals --- diff --git a/tks.pl b/tks.pl index b116947..f15fc79 100755 --- a/tks.pl +++ b/tks.pl @@ -68,7 +68,7 @@ foreach my $entry ( @data ) { if ( $current_date and $current_date ne $entry->{date} ) { # time to print a summary printf("\t\t%.2f\n\n", $current_date_hoursum); - $current_date_hoursum = 0.0; + $current_date_hoursum = $entry->{time}; } else { $current_date_hoursum += $entry->{time};