aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-07-23 20:01:33 +0000
committerRichard M. Stallman1996-07-23 20:01:33 +0000
commit5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00 (patch)
tree1948f37958f603621a590998d11cc645c24a2918
parent42f3037714fd1357a30a7ecf28aca90b0aedb6ef (diff)
downloademacs-5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00.tar.gz
emacs-5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00.zip
(cmpl-hours-since-origin): Fix bug:
microseconds count was being used instead of seconds count.
-rw-r--r--lisp/completion.el4
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.")
470 470
471(defun cmpl-hours-since-origin () 471(defun cmpl-hours-since-origin ()
472 (let ((time (current-time))) 472 (let ((time (current-time)))
473 (truncate 473 (floor (+ (* 65536.0 (nth 0 time)) (nth 1 time)) 3600)))
474 (+ (* (/ (car time) 3600.0) (lsh 1 16))
475 (/ (nth 2 time) 3600.0)))))
476 474
477;;--------------------------------------------------------------------------- 475;;---------------------------------------------------------------------------
478;; "Symbol" parsing functions 476;; "Symbol" parsing functions