fixed off by one err in collection start date calc

This commit is contained in:
Damien Elmes 2013-02-25 16:13:50 +09:00
parent aa98e75d39
commit 9642ce9337

View File

@ -313,7 +313,7 @@ group by day order by day""" % (self._limit(), lim),
period = 1
else:
period = max(
1, (self.col.sched.dayCutoff - (t/1000)) / 86400)
1, 1+((self.col.sched.dayCutoff - (t/1000)) / 86400))
i = []
self._line(i, _("Days studied"),
_("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict(