From 0a816fe942637964ee66fbe94c92b5a5cee3689f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 6 Dec 2012 22:53:02 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GitLogParser.js b/GitLogParser.js index c5eafe8b..49922a44 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -165,9 +165,8 @@ for (var h in res) { if (p == 'LONG') { var idletime = Math.floor(res[h][p].total/60000) ; print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' ); - if (idletime > 5) { - totals.idle += idletime; - } + totals.idle += idletime; + continue; } @@ -183,7 +182,7 @@ for (var h in res) { } } -print("\nIDLE : " +(totals.idle/60).toFixed(2) +"h" ); +print("\nLONGIDLE : " +(totals.idle/60).toFixed(2) +"h" ); print("Worked: " + (totals.work/60).toFixed(2) +"h\n" ); -- 2.39.2