From 5ffbe2ba8a9e86cb1203e11b14dfe77a6631fe3e Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Sun, 24 Dec 2017 21:26:18 +0100 Subject: command: use IEC symbols for file size formatting --- player/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'player') diff --git a/player/command.c b/player/command.c index 7830c9fb0b..974c61769e 100644 --- a/player/command.c +++ b/player/command.c @@ -327,15 +327,15 @@ static char *format_file_size(int64_t size) return talloc_asprintf(NULL, "%.0f", s); if (size < (1024 * 1024)) - return talloc_asprintf(NULL, "%.3f Kb", s / (1024.0)); + return talloc_asprintf(NULL, "%.3f KiB", s / (1024.0)); if (size < (1024 * 1024 * 1024)) - return talloc_asprintf(NULL, "%.3f Mb", s / (1024.0 * 1024.0)); + return talloc_asprintf(NULL, "%.3f MiB", s / (1024.0 * 1024.0)); if (size < (1024LL * 1024LL * 1024LL * 1024LL)) - return talloc_asprintf(NULL, "%.3f Gb", s / (1024.0 * 1024.0 * 1024.0)); + return talloc_asprintf(NULL, "%.3f GiB", s / (1024.0 * 1024.0 * 1024.0)); - return talloc_asprintf(NULL, "%.3f Tb", s / (1024.0 * 1024.0 * 1024.0 * 1024.0)); + return talloc_asprintf(NULL, "%.3f TiB", s / (1024.0 * 1024.0 * 1024.0 * 1024.0)); } static char *format_delay(double time) -- cgit v1.2.3