round cards/minute (thanks to Markus)
This commit is contained in:
parent
d25052a56f
commit
cda86307c0
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user