changeset 15774:e3cfe2afed17

(cmpl-hours-since-origin): Fix bug: microseconds count was being used instead of seconds count.
author Richard M. Stallman <rms@gnu.org>
date Tue, 23 Jul 1996 20:01:33 +0000
parents e68aaf2bb5ac
children 2f589e0f2c7a
files lisp/completion.el
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/completion.el	Tue Jul 23 18:30:23 1996 +0000
+++ b/lisp/completion.el	Tue Jul 23 20:01:33 1996 +0000
@@ -470,9 +470,7 @@
 
 (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