add decimal point to reviews/day stat

This commit is contained in:
Damien Elmes 2012-10-28 00:57:28 +09:00
parent 29b0628141
commit 4011fa3084

View file

@ -828,7 +828,7 @@ $(function () {
def _avgDay(self, tot, num, unit): def _avgDay(self, tot, num, unit):
vals = [] vals = []
try: try:
vals.append(_("%(a)d %(b)s/day") % dict(a=tot/float(num), b=unit)) vals.append(_("%(a)0.1f %(b)s/day") % dict(a=tot/float(num), b=unit))
return ", ".join(vals) return ", ".join(vals)
except ZeroDivisionError: except ZeroDivisionError:
return "" return ""