Commit: a783739a0eb5b7451b0c725db61747c9b253b14f
Parent: eda036c49b668fe536c7fa803e07d4729924df59
Author: Randy Palamar
Date: Mon, 23 Aug 2021 18:07:45 -0600
oboeru: remove extra 1s for failed cards
specifically when the new age is less than the MININUM_INCREASE. in
my case it was being dropped but if someone has seconds in TIMEFMT its
unnecessary with the fixed check.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/oboeru.c b/oboeru.c
@@ -192,7 +192,7 @@ bump_card(Card *card, int8_t status)
card->leeches++;
if (diff * SHRINK_RATE < MINIMUM_INCREASE - 1)
- card->due = t + MINIMUM_INCREASE + 1;
+ card->due = t + MINIMUM_INCREASE;
else
card->due = t + diff * SHRINK_RATE;
return 1;