diff options
author | Mark Bryars <github@darkskiez.co.uk> | 2025-05-15 22:55:11 +0200 |
---|---|---|
committer | Mark Bryars <github@darkskiez.co.uk> | 2025-05-15 22:55:50 +0200 |
commit | cea4d4dea38c83a4b1362e1660181f68c679590a (patch) | |
tree | 32047185e4f61a67dd19a9c485acd3332376567b | |
parent | 968369e0da92643a81f3df3e3078a750b9fe22c6 (diff) |
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.
-rw-r--r-- | c_src/cmd_fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |