From 84e3501990039eb70eae0cad645f287dd0bfa81a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 3 Apr 2017 12:24:32 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2