From: Zhe Zhang Date: Tue, 5 May 2015 23:08:48 +0000 (-0500) Subject: mon: Total size of OSDs is a maginitude less than it is supposed to be. X-Git-Tag: v0.94.2~26^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F4563%2Fhead;p=ceph.git mon: Total size of OSDs is a maginitude less than it is supposed to be. When dumping statistics of OSDs such as running command "ceph osd df", the sum of OSDs' size is 2^10 times less than their real size. Fixes: #11534 Signed-off-by: Zhe Zhang (cherry picked from commit 73d16f69d6f58fe8be262b0fb8db28c94605ea7d) --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 261d21e7fa0..58a70ef2b19 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -738,7 +738,7 @@ public: dump_stray(tbl); *tbl << "" << "" << "TOTAL" - << si_t(pgm->osd_sum.kb) + << si_t(pgm->osd_sum.kb << 10) << si_t(pgm->osd_sum.kb_used << 10) << si_t(pgm->osd_sum.kb_avail << 10) << lowprecision_t(average_util)