oboeru

a collection of simple, scriptable flashcard programs
git clone anongit@rnpnr.xyz:oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 02af2bd1fb2aa24ebbcef11a86df6f975f96b352
Parent: 6d260d78485cb4cb4ebd9ae536656dc68aa40e86
Author: Randy Palamar
Date:   Sat, 21 Aug 2021 13:38:38 -0600

oboeru: add 90s to MININUM so that branch isn't entered twice

Diffstat:
Moboeru.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/oboeru.c b/oboeru.c @@ -177,7 +177,8 @@ bump_card(Card *card, int8_t status) switch (status) { case CARD_PASS: if (diff < MINIMUM_INCREASE) { - card->due = t + MINIMUM_INCREASE; + /* + extra 90s so we don't hit this branch twice */ + card->due = t + MINIMUM_INCREASE + 90; return 1; } else { card->due = t + diff * GROWTH_RATE;