summaryrefslogtreecommitdiff
path: root/gnosis-algorithm.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-26 08:42:56 +0200
committerThanos Apollo <[email protected]>2024-01-26 08:42:56 +0200
commitc7a9d7343add099c1ea807fc6065855e8354a6e9 (patch)
treed9561b6831c27f827fc2af22558c5d9dc0002e14 /gnosis-algorithm.el
parent28dde28c4a8c9fdf6551c9b44712225d99b20362 (diff)
gnosis-algorithm-next-interval: Adjust for last-interval
Diffstat (limited to 'gnosis-algorithm.el')
-rw-r--r--gnosis-algorithm.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el
index 596bc7c..0dc2579 100644
--- a/gnosis-algorithm.el
+++ b/gnosis-algorithm.el
@@ -146,13 +146,15 @@ Returns a list of: (INTERVAL N EF) where,
;; When successful-reviews-c is above 3, use 150% or 180%
;; of ef depending on the value of successful-reviews
((and (= success 1)
- (>= successful-reviews-c 3))
+ (>= successful-reviews-c 3)
+ (> last-interval 1))
(* (* ef (if (>= successful-reviews 10) 1.8 1.5)) last-interval))
((and (= success 0)
- (> fails-c 3))
+ (> fails-c 3)
+ (> last-interval 1))
;; When fails-c is above 3, use 150% or 180% of
;; failure-factor depending on the value of total failed
- ;; reviews. It should not be above 0.8
+ ;; reviews.
(* (max (min 0.8 (* failure-factor (if (>= fails-t 10) 1.8 1.5)))
failure-factor)
last-interval))