round() doesn't convert to int

This commit is contained in:
Damien Elmes 2013-05-15 23:37:27 +09:00
parent 47e7f28779
commit 0dceb0ce22

View file

@ -58,7 +58,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 = round(time)
time = int(round(time))
if short:
fmt = shortTimeFmt(type)
else: