when showing time with no decimal, round not floor
This commit is contained in:
parent
9f5d23319d
commit
0b7344c84f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user