Skip to content

Commit

Permalink
Use (float-time) instead of (current-time) when storing timestamps.
Browse files Browse the repository at this point in the history
  • Loading branch information
tohojo committed Aug 22, 2014
1 parent ad2b1d3 commit a078cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sauron.el
Expand Up @@ -329,7 +329,7 @@ otherwise return nil. CMPFUNC is the comparison function."
otherwise, return nil, and update the table with the NICK and a
timestamp."
;; we only store the lsb, which is good enough for 2^16 seconds.
(let* ((now-lsb (nth 1 (current-time))) ;; the stupid emacs time
(let* ((now-lsb (float-time))
(tstamp (gethash nick sr-nick-event-hash))
(diff (when tstamp (- now-lsb tstamp))))
(when (or (not diff) (> diff sauron-nick-insensitivity))
Expand Down

0 comments on commit a078cd6

Please sign in to comment.