round cards/minute (thanks to Markus)

This commit is contained in:
dae 2014-05-25 14:55:29 +09:00
parent d25052a56f
commit cda86307c0

View File

@ -353,7 +353,7 @@ group by day order by day""" % (self._limit(), lim),
tot, period, unit))
if total and tot:
perMin = total / float(tot)
perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin
perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % round(perMin)
self._line(
i, _("Average answer time"),
_("%(a)0.1fs (%(b)s)") % dict(a=(tot*60)/total, b=perMin))