]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Total size of OSDs is a maginitude less than it is supposed to be. 4563/head
authorZhe Zhang <zzxuanyuan@gmail.com>
Tue, 5 May 2015 23:08:48 +0000 (18:08 -0500)
committerKefu Chai <kchai@redhat.com>
Wed, 6 May 2015 09:13:12 +0000 (17:13 +0800)
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 <zzxuanyuan@gmail.com>
(cherry picked from commit 73d16f69d6f58fe8be262b0fb8db28c94605ea7d)

src/mon/OSDMonitor.cc

index 261d21e7fa028c47a4b2d4c9437dee40d8d89ba2..58a70ef2b199646ac9c7650f0b89aa6777cb0c75 100644 (file)
@@ -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)