consider failures when calculating eta

This commit is contained in:
Damien Elmes 2008-11-28 20:01:48 +09:00
parent cd64b0db9e
commit dff358383a

View file

@ -743,6 +743,7 @@ and due < :now""", now=time.time())
elif self.newCardSpacing == NEW_CARDS_LAST:
count = stats['rev'] or stats['new']
count += stats['failed']
count *= 1 + stats['gYoungNo%'] / 100.0
stats['timeLeft'] = anki.utils.fmtTimeSpan(
stats['dAverageTime'] * count, pad=0, point=1, short=short)
else: