diff options
author | Yoni Rabkin <yoni@rabkins.net> | 2019-06-20 11:26:27 -0400 |
---|---|---|
committer | Yoni Rabkin <yoni@rabkins.net> | 2019-06-20 11:26:27 -0400 |
commit | e70459caaadeb715116abb45ddf5e98921d46c14 (patch) | |
tree | 8f484805f56b697ae779cb53134401b71857e788 | |
parent | d913726a127ecd8f956f02be785f258f042aa384 (diff) |
* lisp/emms-playing-time.el: fix time display
-rw-r--r-- | lisp/emms-playing-time.el | 3 |
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 "[==>........]") |