GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Mon, 3 Dec 2012 04:28:28 +0000 (12:28 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Dec 2012 04:28:28 +0000 (12:28 +0800)
GitLogParser.js

index 5af79d5..8152f3f 100644 (file)
@@ -168,8 +168,8 @@ for (var h in res) {
     }
     
 }
-print("\nIDLE : " + Math.floor(totals.idle/60) +"h" );
-print("Worked: " + Math.floor(totals.work/60) +"h\n" );
+print("\nIDLE : " +(totals.idle/60).toFixed(2) +"h" );
+print("Worked: " + (totals.work/60).toFixed(2) +"h\n" );
  
 
 // open file..