From 0b7344c84f3fd0cc0a0d354fe29a8268d96bdb09 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 1 Apr 2013 14:48:17 +0900 Subject: [PATCH] when showing time with no decimal, round not floor --- anki/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/utils.py b/anki/utils.py index cc0b1b9b2..8fe0e1ee0 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -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: