]> git.mjollnir.org Git - tks.git/commitdiff
Print total time formatted to 2dp.
authorNigel McNie <nigel@catalyst.net.nz>
Tue, 3 Jun 2008 22:23:42 +0000 (10:23 +1200)
committerNigel McNie <nigel@catalyst.net.nz>
Tue, 3 Jun 2008 22:23:42 +0000 (10:23 +1200)
tks.pl

diff --git a/tks.pl b/tks.pl
index 0bb1a7f937da6c5a6f286574b30195c682f1a7c2..52c4392977ec045273ff383325cedbc7da785f4d 100755 (executable)
--- a/tks.pl
+++ b/tks.pl
@@ -102,7 +102,7 @@ foreach my $date ( sort keys %{$tkdata} ) {
 
 write_file($args->{'<file>'}, @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;