From 113f3b14ec8631d57bbbc2931e242ac96cf9e6fc 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. Fixes: #11534 Signed-off-by: Zhe Zhang (cherry picked from commit 73d16f69d6f58fe8be262b0fb8db28c94605ea7d) --- 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 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) -- 2.47.3