summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index bb2422c..bf67962 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -1127,7 +1127,7 @@ well."
(let* ((where-id-clause `(= id ,id))
(last-rev (gnosis-get 'last-rev 'review-log where-id-clause))
(rev-date (gnosis-get 'next-rev 'review-log where-id-clause)))
- (gnosis-algorithm-date-diff last-rev rev-date)))
+ (max (gnosis-algorithm-date-diff last-rev rev-date) 1)))
(defun gnosis-review-algorithm (id success)
"Return next review date & ef for note with value of id ID.