diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-07-23 20:01:33 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-07-23 20:01:33 +0000 |
commit | dd89c912452d127fd406e329a09940dc56675b70 (patch) | |
tree | d810fc6c4af07719469ed92afc690dd12f7be6ba /lisp/completion.el | |
parent | b82922fb69b974069658589c4aa7c252556998ed (diff) | |
download | emacs-dd89c912452d127fd406e329a09940dc56675b70.tar.gz |
(cmpl-hours-since-origin): Fix bug:
microseconds count was being used instead of seconds count.
Diffstat (limited to 'lisp/completion.el')
-rw-r--r-- | lisp/completion.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/completion.el b/lisp/completion.el index 835c3521756..6ef505781e4 100644 --- a/lisp/completion.el +++ b/lisp/completion.el @@ -470,9 +470,7 @@ Used to decide whether to save completions.") (defun cmpl-hours-since-origin () (let ((time (current-time))) - (truncate - (+ (* (/ (car time) 3600.0) (lsh 1 16)) - (/ (nth 2 time) 3600.0))))) + (floor (+ (* 65536.0 (nth 0 time)) (nth 1 time)) 3600))) ;;--------------------------------------------------------------------------- ;; "Symbol" parsing functions |