mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-26 21:00:21 +00:00
player: show larger cache sizes in MB on status line
This commit is contained in:
@@ -248,7 +248,11 @@ static void print_status(struct MPContext *mpctx)
|
||||
} else {
|
||||
saddf(&line, "%2ds", (int)s.ts_duration);
|
||||
}
|
||||
saddf(&line, "+%lldKB", (long long)(fill / 1024));
|
||||
if (fill >= 1024 * 1024) {
|
||||
saddf(&line, "+%lldMB", (long long)(fill / 1024 / 1024));
|
||||
} else {
|
||||
saddf(&line, "+%lldKB", (long long)(fill / 1024));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user