summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-16 00:05:35 +0300
committerKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-16 00:05:35 +0300
commiteb67c70842387f65a827be24eac764ef884833bf (patch)
tree3dd19d7f0123c417eb541e58ee8ca0d5788f1f94
parent4f1490279e6417b9ed90a05d6f535e9789921f1a (diff)
downloadgit-hours-eb67c70842387f65a827be24eac764ef884833bf.zip
git-hours-eb67c70842387f65a827be24eac764ef884833bf.tar.gz
git-hours-eb67c70842387f65a827be24eac764ef884833bf.tar.bz2
Fix typo in config.maxCommifDiffInMinutes
-rwxr-xr-xindex.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.js b/index.js
index 3904c0d..2f7830e 100755
--- a/index.js
+++ b/index.js
@@ -81,7 +81,7 @@ function parseArgs() {
function mergeDefaultsWithArgs(config) {
return {
branches: program.branches || [],
- maxCommifDiffInMinutes: program.maxCommitDiff || config.maxCommitDiffInMinutes,
+ maxCommitDiffInMinutes: program.maxCommitDiff || config.maxCommitDiffInMinutes,
firstCommitAdditionInMinutes: program.firstCommitAdd || config.firstCommitAdditionInMinutes
};
}
@@ -111,6 +111,7 @@ function estimateHours(dates) {
// The work of first commit of a session cannot be seen in git history,
// so we make a blunt estimate of it
return hours + (config.firstCommitAdditionInMinutes / 60);
+
}, 0);
return Math.round(hours);