From: Alan Knowles Date: Mon, 3 Apr 2017 04:24:32 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=84e3501990039eb70eae0cad645f287dd0bfa81a GitLogParser.js --- diff --git a/GitLogParser.js b/GitLogParser.js index 2976b7ef..153d9f5c 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -85,7 +85,7 @@ GitLogParser = { hours[-1] = (typeof(hours[-1]) == 'undefined') ? {} : hours[-1]; hours[-1][project] = (typeof(hours[-1][project]) == 'undefined') ? { total : 0, items : [] } - : hours[hour][project]; + : hours[-1][project]; hours[-1][project].total += line.span; hours[-1][project].items.push(line);