From: Alan Knowles Date: Wed, 2 Jan 2013 06:18:10 +0000 (+0800) Subject: GitLogParser.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ab4f82f6ecb6179a3202af0f47a675d7a699bb74 GitLogParser.js --- 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;