From 25e4b965c57462ca8898b24279c55dca18345e8e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 3 Apr 2017 12:37:27 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 ); + + } } } -- 2.39.2