diff options
author | Daniel Hill <daniel@gluo.nz> | 2024-01-19 00:27:44 +1300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-13 21:22:25 -0400 |
commit | ba78af9e56662f73a277f84619a0b623a75f19ff (patch) | |
tree | 915a6a820dbfabb537809798facd23d45dbe11ee | |
parent | 3235e04afef8b4ad72d92f05f8f33f6552793223 (diff) | |
download | linux-stable-ba78af9e56662f73a277f84619a0b623a75f19ff.tar.gz linux-stable-ba78af9e56662f73a277f84619a0b623a75f19ff.tar.bz2 linux-stable-ba78af9e56662f73a277f84619a0b623a75f19ff.zip |
bcachefs: rebalance_status now shows correct units
Signed-off-by: Daniel Hill <daniel@gluo.nz>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/rebalance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index 22d1017aa49b..56336f3dd1d0 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -412,11 +412,11 @@ void bch2_rebalance_status_to_text(struct printbuf *out, struct bch_fs *c) u64 now = atomic64_read(&c->io_clock[WRITE].now); prt_str(out, "io wait duration: "); - bch2_prt_human_readable_s64(out, r->wait_iotime_end - r->wait_iotime_start); + bch2_prt_human_readable_s64(out, (r->wait_iotime_end - r->wait_iotime_start) << 9); prt_newline(out); prt_str(out, "io wait remaining: "); - bch2_prt_human_readable_s64(out, r->wait_iotime_end - now); + bch2_prt_human_readable_s64(out, (r->wait_iotime_end - now) << 9); prt_newline(out); prt_str(out, "duration waited: "); |