From 1d25d7fe922a021caa62d245437371b7bf4e44b7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Oct 2019 19:18:43 +0200 Subject: player: format low cache duration with more decimals --- player/osd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index 2f1e5d5fb8..93d6302cc0 100644 --- a/player/osd.c +++ b/player/osd.c @@ -237,6 +237,8 @@ static char *get_term_status_msg(struct MPContext *mpctx) if (s.ts_duration < 0) { saddf(&line, "???"); + } else if (s.ts_duration < 10) { + saddf(&line, "%2.1fs", s.ts_duration); } else { saddf(&line, "%2ds", (int)s.ts_duration); } -- cgit v1.2.3