player: format low cache duration with more decimals
This commit is contained in:
1 parent
c6c93499cb
commit
1d25d7fe92
1 file changed
+2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user