]> 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. 4555/head
authorZhe Zhang <zzxuanyuan@gmail.com>
Tue, 5 May 2015 23:08:48 +0000 (18:08 -0500)
committerZhe Zhang <zzxuanyuan@gmail.com>
Tue, 5 May 2015 23:08:48 +0000 (18:08 -0500)
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 <zzxuanyuan@gmail.com>
src/mon/OSDMonitor.cc

index 022d3492b405d79aae6e7c671e12c57f6ae97dfa..9f44a479ed6a0169be53881c40f4704b4d477d52 100644 (file)
@@ -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)