From: Zhiqiang Wang Date: Fri, 17 Jul 2015 03:28:19 +0000 (+0800) Subject: rados.cc: fix an issue in the output of the 'rados df' command X-Git-Tag: v9.1.0~529^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5273%2Fhead;p=ceph.git rados.cc: fix an issue in the output of the 'rados df' command The output doesn't indent correctly without this fix. Right align the df stats with their headers. Before this change some of them are 1 character off, and with a strange 'category' column. Signed-off-by: Zhiqiang Wang --- diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index 165f7343cb0d..c41d1b10be23 100644 --- a/src/tools/rados/rados.cc +++ b/src/tools/rados/rados.cc @@ -1497,7 +1497,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts, librados::pool_stat_t& s = i->second; if (!formatter) { printf("%-15s " - "%12lld %12lld %12lld %12lld" + "%12lld %12lld %12lld %12lld " "%12lld %12lld %12lld %12lld %12lld\n", pool_name, (long long)s.num_kb,