README.txt
[gitlive] / GitLogParser.js
index c5eafe8..96bc48e 100644 (file)
@@ -162,12 +162,11 @@ 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' );
-            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" );