mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 23:27:12 -05:00
round cards/minute (thanks to Markus)
This commit is contained in:
parent
d25052a56f
commit
cda86307c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue