projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5f382
)
GitLogParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:49 +0000
(22:53 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:49 +0000
(22:53 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
49922a4
..
96bc48e
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-162,7
+162,7
@@
var res = GitLogParser.parse(xDate.Date.parseDate(Seed.argv[2], 'Y-m-d'));
var totals = { work : 0 , idle: 0}
for (var h in res) {
for (var p in res[h]) {
- if (p == 'LONG') {
+ if (p == 'LONG
IDLE
') {
var idletime = Math.floor(res[h][p].total/60000) ;
print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' );
totals.idle += idletime;