Fix lack of rounding when reporting seconds

This commit is contained in:
Eric Fredricksen
2018-10-02 09:25:03 -07:00
committed by Eric Fredricksen
parent e35361834d
commit 6adb846f75
+1 -1
View File
@@ -862,7 +862,7 @@ function ClearAllSelections() {
}
function RoughTime(s) {
if (s < 120) return s + ' seconds';
if (s < 120) return s.div(1) + ' seconds';
else if (s < 60 * 120) return s.div(60) + ' minutes';
else if (s < 60 * 60 * 48) return s.div(3600) + ' hours';
else if (s < 60 * 60 * 24 * 60) return s.div(3600 * 24) + ' days';