projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0cdf0a
)
GitLogParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:46:51 +0000
(22:46 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:46:51 +0000
(22:46 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
8152f3f
..
ff3c534
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-152,8
+152,12
@@
var totals = { work : 0 , idle: 0}
for (var h in res) {
for (var p in res[h]) {
if (p == 'IDLE') {
+ var idletime = Math.floor(res[h][p].total/60000) ;
print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' );
- totals.idle += Math.floor(res[h][p].total/60000) ;
+ if (idletime > 5) {
+ totals.idle += idletime;
+ }
+
continue;
}
print(h + ' ' + Math.floor(res[h][p].total/60000) +'m ' + p );