player: show larger cache sizes in MB on status line
This commit is contained in:
1 parent
739d345d6c
commit
27708eee81
1 file changed
+5
-1
+5
-1
@@ -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