aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-playing-time.el
diff options
context:
space:
mode:
authorYoni Rabkin <yoni@rabkins.net>2019-06-20 11:26:27 -0400
committerYoni Rabkin <yoni@rabkins.net>2019-06-20 11:26:27 -0400
commite70459caaadeb715116abb45ddf5e98921d46c14 (patch)
tree8f484805f56b697ae779cb53134401b71857e788 /lisp/emms-playing-time.el
parentd913726a127ecd8f956f02be785f258f042aa384 (diff)
* lisp/emms-playing-time.el: fix time display
Diffstat (limited to 'lisp/emms-playing-time.el')
-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 "[==>........]")