From 24a5e0b8612dc01c7d5f4cf0adeb6e998e750e51 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 3 Apr 2017 12:25:42 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/GitLogParser.js b/GitLogParser.js index 153d9f5c..a3861f1e 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -257,13 +257,17 @@ for (var h in res) { //print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p ); totals.work += Math.floor(res[h][p].total/60000) ; - for (var k in res[h][p].items) { - - //print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line ); + + if (h == -1) { + + print( "\n" + p ':'); + for (var k in res[h][p].items) { + print( ' ' + Math.floor(res[h][p].items[k].span/60000) +'m ' + res[h][p].items[k].line ); + + } } - } } -- 2.39.2