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:
Dan Mick 2013-08-20 11:10:42 -07:00
parent 1f851cb248
commit eca53bbf58

View File

@ -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, "