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:
parent
c6c93499cb
commit
1d25d7fe92
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user