From cea4d4dea38c83a4b1362e1660181f68c679590a Mon Sep 17 00:00:00 2001 From: Mark Bryars Date: Thu, 15 May 2025 22:55:11 +0200 Subject: Fix human readable units for compressed data It was forcing human readable units even without the -h flag, so use the functions that respect that configuration. --- c_src/cmd_fs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c_src') diff --git a/c_src/cmd_fs.c b/c_src/cmd_fs.c index 4ab3ec0d..79826cb2 100644 --- a/c_src/cmd_fs.c +++ b/c_src/cmd_fs.c @@ -355,13 +355,13 @@ static int fs_usage_v1_to_text(struct printbuf *out, bch2_prt_compression_type(out, acc_k.compression.type); prt_tab(out); - prt_human_readable_u64(out, sectors_compressed << 9); + prt_units_u64(out, sectors_compressed << 9); prt_tab_rjust(out); - prt_human_readable_u64(out, sectors_uncompressed << 9); + prt_units_u64(out, sectors_uncompressed << 9); prt_tab_rjust(out); - prt_human_readable_u64(out, nr_extents + prt_units_u64(out, nr_extents ? div_u64(sectors_uncompressed << 9, nr_extents) : 0); prt_tab_rjust(out); -- cgit v1.2.3