GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 03:43:02 +0000 (11:43 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 03:43:02 +0000 (11:43 +0800)
GitLogParser.js

index e6302f5..186f68c 100644 (file)
@@ -263,7 +263,7 @@ for (var desc in totals) {
 hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
 print("\n\nDay Total (" + htot +')');
 hsum.forEach(function(r) {
-    print ("  " + r.tot + "   : " + r.desc);
+    print ("  " + (r.tot.toFixed(2)*1) + "   : " + r.desc);
 });
 
 //print(JSON.stringify(GitLogParser.shours,null,4));