From 73d16f69d6f58fe8be262b0fb8db28c94605ea7d Mon Sep 17 00:00:00 2001 From: Zhe Zhang Date: Tue, 5 May 2015 18:08:48 -0500 Subject: [PATCH] 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 --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 022d3492b405..9f44a479ed6a 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) -- 2.47.3