From: Nigel McNie Date: Tue, 3 Jun 2008 22:23:42 +0000 (+1200) Subject: Print total time formatted to 2dp. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=160aed51a446336cf6ae838a7fc166a75f48c5b0;p=tks.git Print total time formatted to 2dp. --- diff --git a/tks.pl b/tks.pl index 0bb1a7f..52c4392 100755 --- a/tks.pl +++ b/tks.pl @@ -102,7 +102,7 @@ foreach my $date ( sort keys %{$tkdata} ) { write_file($args->{''}, @lines) if $file_needs_write; -print "Total time: ", $total_time, "\n"; +printf("Total time: %.2f\n", $total_time); print "Run this program again with -c to commit the work\n" unless $args->{'-c'} or $total_time == 0;