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)
|
(type, point) = optimalPeriod(time, point, unit)
|
||||||
time = convertSecondsTo(time, type)
|
time = convertSecondsTo(time, type)
|
||||||
if not point:
|
if not point:
|
||||||
time = math.floor(time)
|
time = round(time)
|
||||||
if short:
|
if short:
|
||||||
fmt = shortTimeFmt(type)
|
fmt = shortTimeFmt(type)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user