From e70459caaadeb715116abb45ddf5e98921d46c14 Mon Sep 17 00:00:00 2001 From: Yoni Rabkin Date: Thu, 20 Jun 2019 11:26:27 -0400 Subject: * lisp/emms-playing-time.el: fix time display --- lisp/emms-playing-time.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emms-playing-time.el') 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 "[==>........]") -- cgit v1.2.3