]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados.cc: fix an issue in the output of the 'rados df' command 5273/head
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 17 Jul 2015 03:28:19 +0000 (11:28 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 17 Jul 2015 08:44:02 +0000 (16:44 +0800)
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 <zhiqiang.wang@intel.com>
src/tools/rados/rados.cc

index 165f7343cb0d43683dfe6d4f794511bdf2ffbe4e..c41d1b10be2384007639a3161db80f7af65135ce 100644 (file)
@@ -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,