when showing time with no decimal, round not floor

This commit is contained in:
Damien Elmes 2013-04-01 14:48:17 +09:00
parent 9f5d23319d
commit 0b7344c84f

View File

@ -57,7 +57,7 @@ def fmtTimeSpan(time, pad=0, point=0, short=False, after=False, unit=99):
(type, point) = optimalPeriod(time, point, unit)
time = convertSecondsTo(time, type)
if not point:
time = math.floor(time)
time = round(time)
if short:
fmt = shortTimeFmt(type)
else: