GitLogParser.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:49 +0000 (22:53 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:49 +0000 (22:53 +0800)
GitLogParser.js

index 49922a4..96bc48e 100644 (file)
@@ -162,7 +162,7 @@ var res = GitLogParser.parse(xDate.Date.parseDate(Seed.argv[2], 'Y-m-d'));
 var totals = { work : 0 , idle: 0}
 for (var h in res) {
     for (var p in res[h]) {
-        if (p == 'LONG') {
+        if (p == 'LONGIDLE') {
             var idletime = Math.floor(res[h][p].total/60000) ;
             print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' );
             totals.idle += idletime;