summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-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);
}