player: format low cache duration with more decimals

This commit is contained in:
wm4 committed 2019-10-11 19:18:43 +02:00
1 parent c6c93499cb
commit 1d25d7fe92
1 file changed
+2
+2
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);
}