diff options
| author | Glenn Morris | 2009-09-02 03:20:48 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-02 03:20:48 +0000 |
| commit | a68366f4da2cbf3c83e896ae2d8d0b73a84b666a (patch) | |
| tree | 0e31185f6ce35fe3166b4bd5e207d9be6c2d3952 | |
| parent | 5b66944704067d748de6734b6223389a433e3de8 (diff) | |
| download | emacs-a68366f4da2cbf3c83e896ae2d8d0b73a84b666a.tar.gz emacs-a68366f4da2cbf3c83e896ae2d8d0b73a84b666a.zip | |
(rcirc-keepalive, rcirc-handler-ctcp-KEEPALIVE):
Use float-time rather than time-to-seconds.
| -rw-r--r-- | lisp/net/rcirc.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 095ebe7245f..ab9a0ba8b7d 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -538,8 +538,10 @@ last ping." | |||
| 538 | (rcirc-send-string process | 538 | (rcirc-send-string process |
| 539 | (format "PRIVMSG %s :\C-aKEEPALIVE %f\C-a" | 539 | (format "PRIVMSG %s :\C-aKEEPALIVE %f\C-a" |
| 540 | rcirc-nick | 540 | rcirc-nick |
| 541 | (time-to-seconds | 541 | (if (featurep 'xemacs) |
| 542 | (current-time))))))) | 542 | (time-to-seconds |
| 543 | (current-time)) | ||
| 544 | (float-time))))))) | ||
| 543 | (rcirc-process-list)) | 545 | (rcirc-process-list)) |
| 544 | ;; no processes, clean up timer | 546 | ;; no processes, clean up timer |
| 545 | (cancel-timer rcirc-keepalive-timer) | 547 | (cancel-timer rcirc-keepalive-timer) |
| @@ -547,7 +549,10 @@ last ping." | |||
| 547 | 549 | ||
| 548 | (defun rcirc-handler-ctcp-KEEPALIVE (process target sender message) | 550 | (defun rcirc-handler-ctcp-KEEPALIVE (process target sender message) |
| 549 | (with-rcirc-process-buffer process | 551 | (with-rcirc-process-buffer process |
| 550 | (setq header-line-format (format "%f" (- (time-to-seconds (current-time)) | 552 | (setq header-line-format (format "%f" (- (if (featurep 'xemacs) |
| 553 | (time-to-seconds | ||
| 554 | (current-time)) | ||
| 555 | (float-time)) | ||
| 551 | (string-to-number message)))))) | 556 | (string-to-number message)))))) |
| 552 | 557 | ||
| 553 | (defvar rcirc-debug-buffer " *rcirc debug*") | 558 | (defvar rcirc-debug-buffer " *rcirc debug*") |