aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/completion.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-07-23 20:01:33 +0000
committerRichard M. Stallman <[email protected]>1996-07-23 20:01:33 +0000
commit5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00 (patch)
tree1948f37958f603621a590998d11cc645c24a2918 /lisp/completion.el
parent42f3037714fd1357a30a7ecf28aca90b0aedb6ef (diff)
(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.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/completion.el b/lisp/completion.el
index 835c352175..6ef505781e 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