aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emms-playing-time.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emms-playing-time.el b/lisp/emms-playing-time.el
index 01ea380..8b14e16 100644
--- a/lisp/emms-playing-time.el
+++ b/lisp/emms-playing-time.el
@@ -189,7 +189,8 @@ could call `emms-playing-time-enable-display' and
(eq total-playing-time 0))
(format "%2d:%2d" min sec)
(format "-%2d:%2d"
- (- total-min-only min) (- total-sec-only sec))))))
+ (/ (- total-playing-time emms-playing-time) 60)
+ (% (- total-playing-time sec) 60))))))
((bar) ; `bar' style
(if (zerop total-playing-time)
(setq emms-playing-time-string "[==>........]")