mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
mon/PGMap: OSD byte counts 4x too large (conversion to bytes overzealous)
Fixes: #6049 Signed-off-by: Dan Mick <dan.mick@inktank.com>
This commit is contained in:
parent
1f851cb248
commit
eca53bbf58
@ -849,9 +849,9 @@ void PGMap::print_summary(Formatter *f, ostream *out) const
|
||||
f->dump_unsigned("version", version);
|
||||
f->dump_unsigned("num_pgs", pg_stat.size());
|
||||
f->dump_unsigned("data_bytes", pg_sum.stats.sum.num_bytes);
|
||||
f->dump_unsigned("bytes_used", osd_sum.kb_used * 4096ull);
|
||||
f->dump_unsigned("bytes_avail", osd_sum.kb_avail * 4096ull);
|
||||
f->dump_unsigned("bytes_total", osd_sum.kb * 4096ull);
|
||||
f->dump_unsigned("bytes_used", osd_sum.kb_used * 1024ull);
|
||||
f->dump_unsigned("bytes_avail", osd_sum.kb_avail * 1024ull);
|
||||
f->dump_unsigned("bytes_total", osd_sum.kb * 1024ull);
|
||||
} else {
|
||||
*out << " pgmap v" << version << ": "
|
||||
<< pg_stat.size() << " pgs, " << pg_pool_sum.size() << " pools, "
|
||||
|
Loading…
Reference in New Issue
Block a user