Skip to content

Commit

Permalink
Merge pull request ceph#17549 from iliul/fix-texttable-align
Browse files Browse the repository at this point in the history
tools: Modify "rados df" header's alignment

Reviewed-by: xie xingguo <[email protected]>
  • Loading branch information
tchaikov authored Sep 9, 2017
2 parents ec42310 + ef9ddaf commit 050a9a5
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/tools/rados/rados.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2036,17 +2036,17 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,

if (!formatter) {
tab.define_column("POOL_NAME", TextTable::LEFT, TextTable::LEFT);
tab.define_column("USED", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("OBJECTS", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("CLONES", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("COPIES", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("MISSING_ON_PRIMARY", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("UNFOUND", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("DEGRADED", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("RD_OPS", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("RD", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("WR_OPS", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("WR", TextTable::LEFT, TextTable::RIGHT);
tab.define_column("USED", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("OBJECTS", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("CLONES", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("COPIES", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("MISSING_ON_PRIMARY", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("UNFOUND", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("DEGRADED", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("RD_OPS", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("RD", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("WR_OPS", TextTable::RIGHT, TextTable::RIGHT);
tab.define_column("WR", TextTable::RIGHT, TextTable::RIGHT);
} else {
formatter->open_object_section("stats");
formatter->open_array_section("pools");
Expand Down

0 comments on commit 050a9a5

Please sign in to comment.