diff options
Diffstat (limited to 'lisp/ecomplete.el')
-rw-r--r-- | lisp/ecomplete.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ecomplete.el b/lisp/ecomplete.el index fb23ead63f6..d9f34ef0c00 100644 --- a/lisp/ecomplete.el +++ b/lisp/ecomplete.el @@ -210,7 +210,7 @@ matches." (defun ecomplete-decay-1 (elem) ;; We subtract 5% from the item for each week it hasn't been used. (/ (car elem) - (expt 1.05 (/ (- (float-time) (cadr elem)) + (expt 1.05 (/ (float-time (time-since (cadr elem))) (* 7 24 60 60))))) ;; `ecomplete-get-matches' uses substring matching, so also use the `substring' |