]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: fix alignment of 'cache io' in ceph -s output
authorSage Weil <sage@redhat.com>
Sun, 25 Dec 2016 18:21:08 +0000 (13:21 -0500)
committerSage Weil <sage@redhat.com>
Tue, 27 Dec 2016 16:02:19 +0000 (11:02 -0500)
Currently it looks like

  client io 3508 B/s wr, 0 op/s rd, 5 op/s wr
  cache io 0 op/s promote

but should be

  client io 3508 B/s wr, 0 op/s rd, 5 op/s wr
   cache io 0 op/s promote

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc

index 85216fbc6aed3ffe5bc24eb345a78d92837ad242..72d39bcda264d9448fd0905282a2391000c4d78e 100644 (file)
@@ -1641,7 +1641,7 @@ void PGMap::print_summary(Formatter *f, ostream *out) const
 
   overall_cache_io_rate_summary(f, &ssr);
   if (!f && ssr.str().length())
-    *out << "  cache io " << ssr.str() << "\n";
+    *out << "   cache io " << ssr.str() << "\n";
 }
 
 void PGMap::print_oneline_summary(Formatter *f, ostream *out) const