summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-06 21:35:32 +0300
committerKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-06 21:35:32 +0300
commit0c6dacbb602184dc5bb32c9634e11c78dd3c35fa (patch)
tree67a777d95f359e1bacef56e19dbf5b681fd4bbc2
parent7fab914b2b13b054850e41f92516e3577cb66985 (diff)
downloadgit-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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index c7a6b03..b04fa3a 100644
--- a/index.js
+++ b/index.js
@@ -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);
}