1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

player: format low cache duration with more decimals

This commit is contained in:
wm4 2019-10-11 19:18:43 +02:00
parent c6c93499cb
commit 1d25d7fe92

View File

@ -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);
}