From 7845686cded0e2e856bca8b7f7ddec8d08d3f26b Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Tue, 5 Jan 2016 17:19:33 -0800 Subject: [PATCH] Increase thresholds for using larger units. --- static/babystats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/babystats.js b/static/babystats.js index 6903fbb..bc33a65 100644 --- a/static/babystats.js +++ b/static/babystats.js @@ -808,9 +808,9 @@ BabyStats.prototype.buildGrid_ = function() { */ BabyStats.prototype.secondsToHuman_ = function(seconds, opt_floatToInt) { var floatToInt = opt_floatToInt || Math.floor; - if (seconds > 60 * 60 * 24 * 2) { + if (seconds > 60 * 60 * 24 * 3) { return floatToInt(seconds / (60 * 60 * 24)).toString() + 'd'; - } else if (seconds > 60 * 60 * 2) { + } else if (seconds > 60 * 60 * 3) { return floatToInt(seconds / (60 * 60)).toString() + 'h'; } else { return floatToInt(seconds / 60).toString() + 'm';