aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-playing-time.el
diff options
context:
space:
mode:
authorWilliam Xu <william.xwl@gmail.com>2009-11-22 21:38:22 +0800
committerWilliam Xu <william.xwl@gmail.com>2009-11-22 21:38:22 +0800
commitf605bbf41320f867614b2c56891b10986e405839 (patch)
treefe13b867b69e6960e6f02d3d3a987ee34eed7fd1 /lisp/emms-playing-time.el
parenteef8a91d50aa4515daec4cd51ef8a1e0a3682a75 (diff)
(emms-playing-time-display): Gurantee emms-playing-time to be an integer.
Diffstat (limited to 'lisp/emms-playing-time.el')
-rw-r--r--lisp/emms-playing-time.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emms-playing-time.el b/lisp/emms-playing-time.el
index 8194925..54a7f12 100644
--- a/lisp/emms-playing-time.el
+++ b/lisp/emms-playing-time.el
@@ -165,7 +165,7 @@ could call `emms-playing-time-enable-display' and
(defun emms-playing-time-display ()
"Display playing time on the mode line."
- (setq emms-playing-time (1+ emms-playing-time))
+ (setq emms-playing-time (round (1+ emms-playing-time)))
(setq emms-playing-time-string "")
(when emms-playing-time-display-p
(let* ((min (/ emms-playing-time 60))