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 | 5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00 (patch) | |
tree | 1948f37958f603621a590998d11cc645c24a2918 /lisp/completion.el | |
parent | 42f3037714fd1357a30a7ecf28aca90b0aedb6ef (diff) | |
download | emacs-5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00.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 |