GitLogParser.js
authorAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:22:23 +0000 (12:22 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 3 Apr 2017 04:22:23 +0000 (12:22 +0800)
GitLogParser.js

index ae106ad..4f7b635 100644 (file)
@@ -62,8 +62,7 @@ GitLogParser = {
         // shours should be:
         // hour : [ ]
         
-        var totals = {};
-        
+         
         for (var i = 0; i < lines.length; i++) {
             var line = lines[i];
             var hour = line.start.format('H');
@@ -86,8 +85,11 @@ GitLogParser = {
             shours[hour] = (typeof(shours[hour]) == 'undefined') ? {} : shours[hour];
             shours[hour][line.desc] = (typeof(shours[hour][line.desc] ) == 'undefined') ? 0 : shours[hour][line.desc] ;
             shours[hour][line.desc] += line.span;
+             
+            
             
         }
+        this.total = total;
         this.shours = shours;
         return hours;