]> code.delx.au - gnu-emacs/blobdiff - lisp/net/tramp.el
Simplify now that float-time etc. are built-in
[gnu-emacs] / lisp / net / tramp.el
index aa335d3ce02fc194e724ebef9163a5134ea3b2c8..377b529803c420bc119fb3a1b85b05b387e86d23 100644 (file)
@@ -4124,7 +4124,7 @@ Invokes `password-read' if available, `read-passwd' else."
 (defun tramp-time-diff (t1 t2)
   "Return the difference between the two times, in seconds.
 T1 and T2 are time values (as returned by `current-time' for example)."
-  (float-time (subtract-time t1 t2)))
+  (float-time (time-subtract t1 t2)))
 
 ;; Currently (as of Emacs 20.5), the function `shell-quote-argument'
 ;; does not deal well with newline characters.  Newline is replaced by