From 6579fcb69d6400e8f591987eaef1d4d49b270983 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Fri, 17 Jul 2015 11:28:19 +0800 Subject: [PATCH] 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 --- src/tools/rados/rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc index 165f7343cb0d4..c41d1b10be238 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, -- 2.39.5