From 76f0b7e187020e301a41d219830e37da6f9151b1 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 10 Jul 2013 19:30:51 +0200 Subject: [PATCH] btrfs-progs: use IEC units for sizes As implemented now, we use 1024 based units but reporting 1000 based, let's finally fix that and add optional unit bases later. Signed-off-by: David Sterba Signed-off-by: Chris Mason --- utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils.c b/utils.c index d3bec9b7..ac6b4bb4 100644 --- a/utils.c +++ b/utils.c @@ -1173,8 +1173,7 @@ out: return ret; } -static char *size_strs[] = { "", "KB", "MB", "GB", "TB", - "PB", "EB"}; +static char *size_strs[] = { "", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"}; void pretty_size_snprintf(u64 size, char *str, size_t str_bytes) { int num_divs = 0;