GitLogParser.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 1 Aug 2012 23:43:47 +0000 (07:43 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 1 Aug 2012 23:43:47 +0000 (07:43 +0800)
GitLogParser.js

index 0608efb..abf096d 100644 (file)
@@ -43,7 +43,7 @@ GitLogParser = {
             hours[hour] = (typeof(hours[hour]) == 'undefined') ? {} : hours[hour];
             hours[hour][project] = (typeof(hours[hour][project]) == 'undefined') ? 
                     { total : 0, items : [] } 
-                    : hours[project];
+                    : hours[hour][project];
             hours[hour][project].total += line.span;
             hours[hour][project].items.push(line);
         }