GitLogParser.js
[gitlive] / GitLogParser.js
index 153d9f5..5d28dfa 100644 (file)
@@ -97,8 +97,7 @@ GitLogParser = {
             
             
         }
-        this.total = total;
-        this.shours = shours;
+         this.shours = shours;
         return hours;
 
     },
@@ -257,13 +256,18 @@ 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 );
+                     
+            }
         }
         
-        
     }
     
 }