From 5a3d3a1674e3cf97baf4defdc182cf8bb8b76c00 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 23 Jul 1996 20:01:33 +0000 Subject: [PATCH] (cmpl-hours-since-origin): Fix bug: microseconds count was being used instead of seconds count. --- lisp/completion.el | 4 +--- 1 file changed, 1 insertion(+), 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 -- 2.39.5