mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Fix lack of rounding when reporting seconds
This commit is contained in:
committed by
Eric Fredricksen
parent
e35361834d
commit
6adb846f75
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user