projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fa82a7
)
GitLogParser.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:02 +0000
(22:53 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 6 Dec 2012 14:53:02 +0000
(22:53 +0800)
GitLogParser.js
patch
|
blob
|
history
diff --git
a/GitLogParser.js
b/GitLogParser.js
index
c5eafe8
..
49922a4
100644
(file)
--- a/
GitLogParser.js
+++ b/
GitLogParser.js
@@
-165,9
+165,8
@@
for (var h in res) {
if (p == 'LONG') {
var idletime = Math.floor(res[h][p].total/60000) ;
print(h + ' ' + Math.floor(res[h][p].total/60000) +'m IDLE' );
- if (idletime > 5) {
- totals.idle += idletime;
- }
+ totals.idle += idletime;
+
continue;
}
@@
-183,7
+182,7
@@
for (var h in res) {
}
}
-print("\nIDLE : " +(totals.idle/60).toFixed(2) +"h" );
+print("\n
LONG
IDLE : " +(totals.idle/60).toFixed(2) +"h" );
print("Worked: " + (totals.work/60).toFixed(2) +"h\n" );