diff options
author | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-06 21:35:32 +0300 |
---|---|---|
committer | Kimmo Brunfeldt <kimmobrunfeldt@gmail.com> | 2014-07-06 21:35:32 +0300 |
commit | 0c6dacbb602184dc5bb32c9634e11c78dd3c35fa (patch) | |
tree | 67a777d95f359e1bacef56e19dbf5b681fd4bbc2 | |
parent | 7fab914b2b13b054850e41f92516e3577cb66985 (diff) | |
download | git-hours-0c6dacbb602184dc5bb32c9634e11c78dd3c35fa.zip git-hours-0c6dacbb602184dc5bb32c9634e11c78dd3c35fa.tar.gz git-hours-0c6dacbb602184dc5bb32c9634e11c78dd3c35fa.tar.bz2 |
Add rounding to hours and increase first commit effort
-rw-r--r-- | index.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -9,7 +9,7 @@ var config = { maxCommitDiffInMinutes: 240, // How many minutes should be added for the first commit of coding session - firstCommitAdditionInMinutes: 60 + firstCommitAdditionInMinutes: 120 } function main() { @@ -21,7 +21,7 @@ function main() { } }; - console.log(JSON.stringify(work)); + console.log(JSON.stringify(work, undefined, 2)); }).catch(function(e) { console.error(e.stack); }); @@ -50,7 +50,7 @@ function estimateHours(dates) { return hours + (config.firstCommitAdditionInMinutes / 60); }, 0); - return hours; + return Math.round(hours); } |