From ab4f82f6ecb6179a3202af0f47a675d7a699bb74 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 2 Jan 2013 14:18:10 +0800 Subject: [PATCH] GitLogParser.js --- GitLogParser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GitLogParser.js b/GitLogParser.js index d29a33a4..fd29d91a 100644 --- a/GitLogParser.js +++ b/GitLogParser.js @@ -74,8 +74,9 @@ GitLogParser = { hours[hour][project].total += line.span; hours[hour][project].items.push(line); - - + 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; } return hours; -- 2.39.2