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: v9.0.2~240^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=73d16f69d6f58fe8be262b0fb8db28c94605ea7d;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. Signed-off-by: Zhe Zhang --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 022d3492b40..9f44a479ed6 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -754,7 +754,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)