Commit ba78af9e authored by Daniel Hill's avatar Daniel Hill Committed by Kent Overstreet

bcachefs: rebalance_status now shows correct units

Signed-off-by: default avatarDaniel Hill <daniel@gluo.nz>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 3235e04a
...@@ -412,11 +412,11 @@ void bch2_rebalance_status_to_text(struct printbuf *out, struct bch_fs *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); u64 now = atomic64_read(&c->io_clock[WRITE].now);
prt_str(out, "io wait duration: "); 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_newline(out);
prt_str(out, "io wait remaining: "); 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_newline(out);
prt_str(out, "duration waited: "); prt_str(out, "duration waited: ");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment