GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:40:27 +0000 (12:40 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:40:27 +0000 (12:40 +0800)
GitLogParser.js

index cc3b183..d267a82 100644 (file)
@@ -312,9 +312,9 @@ var hsum = [];
 for (var desc in totals) {    
     hsum.push({ desc : desc, tot : totals[desc] });
 }
-hsum.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
-print("\n\nDay Total");
-hsum.forEach(function(r) {
+unknown.sort(function(a,b) { if (a.tot == b.tot) { return 0; } return a.tot < b.tot ? 1 : -1 });
+print("\n\nUnclassified");
+unknown.forEach(function(r) {
     print ("  " + (r.tot.toFixed(2)*1) + "   : " + r.desc);
 });