si_t expects bytes, but it was being given kilobytes. Signed-off-by: Mike Kelly <pioto@xxxxxxxxx> --- src/mon/PGMonitor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index ed4833b..1717298 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1054,9 +1054,9 @@ void PGMonitor::dump_fs_stats(stringstream &ss, Formatter *f, bool verbose) if (verbose) { tbl.define_column("OBJECTS", TextTable::LEFT, TextTable::LEFT); } - tbl << stringify(si_t(pg_map.osd_sum.kb)) - << stringify(si_t(pg_map.osd_sum.kb_avail)) - << stringify(si_t(pg_map.osd_sum.kb_used)); + tbl << stringify(si_t(pg_map.osd_sum.kb*1024)) + << stringify(si_t(pg_map.osd_sum.kb_avail*1024)) + << stringify(si_t(pg_map.osd_sum.kb_used*1024)); tbl << percentify(((float)pg_map.osd_sum.kb_used / pg_map.osd_sum.kb)*100); if (verbose) { tbl << stringify(si_t(pg_map.pg_sum.stats.sum.num_objects)); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html