summaryrefslogtreecommitdiff
path: root/Query.c
diff options
context:
space:
mode:
authorMaciej Naruszewicz <maciej.naruszewicz@intel.com>2012-10-02 16:41:13 +1000
committerNeilBrown <neilb@suse.de>2012-10-02 16:41:13 +1000
commitf0ec67106c00f8dd1cadebfdff933fd8aefa0ff2 (patch)
treed24c04334fe33be3a8edf58d88086cdc122bc402 /Query.c
parent570abc6f3881b5152cb1244d5e6afcc421c5a4ce (diff)
downloadmdadm-f0ec67106c00f8dd1cadebfdff933fd8aefa0ff2.tar.gz
Display size with human_size_brief with a chosen prefix
When using human_size_brief, only IEC prefixes were supported. Now it's possible to specify which format we want to see - either IEC (kibi, mibi, gibi) or JEDEC (kilo, mega, giga). Signed-off-by: Maciej Naruszewicz <maciej.naruszewicz@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Query.c')
-rw-r--r--Query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Query.c b/Query.c
index b9c209f..329e583 100644
--- a/Query.c
+++ b/Query.c
@@ -76,7 +76,7 @@ int Query(char *dev)
else {
printf("%s: %s %s %d devices, %d spare%s. Use mdadm --detail for more detail.\n",
dev,
- human_size_brief(larray_size),
+ human_size_brief(larray_size,IEC),
map_num(pers, array.level),
array.raid_disks,
array.spare_disks, array.spare_disks==1?"":"s");