From: Alan Knowles Date: Mon, 3 Apr 2017 04:40:27 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=1b587305133e7e9551bc4c960da37c5fc99c5824 GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index cc3b1839..d267a828 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -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); });