From: Alan Knowles Date: Mon, 3 Apr 2017 04:37:27 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=25e4b965c57462ca8898b24279c55dca18345e8e GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index 807f98f6..9f7f04d9 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -261,12 +261,15 @@ for (var h in res) { if (h == -1) { - print( "\n" + p + ':'); + print( "\n" + p + ':' + Math.floor(res[h][p].total/60000) + 'm'); - for (var k in res[h][p].items) { - - print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k ); + if (p != 'Unknown') { + + for (var k in res[h][p].items) { + print( ' ' + Math.floor(res[h][p].items[k]/60000) +'m ' + k ); + + } } }