summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-23 18:38:07 +0300
committerThanos Apollo <[email protected]>2024-07-23 18:39:06 +0300
commit58b0ece3a027969a097ea7bd6381429e9ad361b9 (patch)
tree593e6325ab0ee8acddcffabd276f1e3f1ca9c0c5
parent28ca5681a5ef0ac0c6e3453672461450ba758043 (diff)
review: Add threshold and use c-fails to calc next interv.
* Use threshold to reset next interval to 0. When c-fails >= threshold set next interval to 0.
-rw-r--r--gnosis.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnosis.el b/gnosis.el
index 5e42d99..e3dad4b 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1470,6 +1470,8 @@ Returns a list of the form ((yyyy mm dd) (ef-increase ef-decrease ef-total))."
:ef (nth 2 ef) ;; total ef is used for next interval
:success success
:successful-reviews t-success
+ :c-fails c-fails
+ :threshold 3 ;;TODO: Create a gnosis-interval-thershold
:failure-factor ff
:initial-interval (gnosis-get-note-initial-interval id))
(gnosis-algorithm-next-ef :ef ef