summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnkitRaj <anraj@redhat.com>2017-05-08 17:52:33 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-05-25 21:16:20 +0000
commit1fd0fd5cc5bdb47d725c8eaaffa78754c3f6ff17 (patch)
tree772fc7f2703744466b268668f808a7550c53b798
parenta80ec1b99309ca113cd673d2bc0cf20d50822a47 (diff)
dht:Spacing issue in fix-layout o/p
There is a spacing issue in the status output of the rebalance fix-layout operations. If the local host name is big then we will have spacing issue. This is the backport of below given ID. > Bug 1437748 > Reviewed-on: https://review.gluster.org/17203 > Smoke: Gluster Build System <jenkins@build.gluster.org> > Tested-by: ankitraj <anraj@redhat.com> > NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> > CentOS-regression: Gluster Build System <jenkins@build.gluster.org> >Reviewed-by: Jeff Darcy <jeff@pl.atyp.us> Change-Id: I2fcc4fd382723fb7e93cb4d4dad03dae682cc1a8 BUG: 1452000 Signed-off-by: AnkitRaj <anraj@redhat.com> Reviewed-on: https://review.gluster.org/17327 Tested-by: ankitraj NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Tested-by: Shyamsundar Ranganathan <srangana@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
-rw-r--r--cli/src/cli-rpc-ops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 81cb7d20b5c..837de198f50 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -1639,9 +1639,9 @@ gf_cli_print_rebalance_status (dict_t *dict, enum gf_task_types task_type,
}
if (fix_layout) {
- cli_out ("%40s %40s %18s", "Node", "status",
+ cli_out ("%35s %41s %27s", "Node", "status",
"run time in h:m:s");
- cli_out ("%40s %40s %18s", "---------", "-----------",
+ cli_out ("%35s %41s %27s", "---------", "-----------",
"------------");
} else {
cli_out ("%40s %16s %13s %13s %13s %13s %20s %18s",
@@ -1761,7 +1761,7 @@ gf_cli_print_rebalance_status (dict_t *dict, enum gf_task_types task_type,
sec = ((int) elapsed % 3600) % 60;
if (fix_layout) {
- cli_out ("%20s %40s %8d:%d:%d", node_name, status_str,
+ cli_out ("%35s %50s %8d:%d:%d", node_name, status_str,
hrs, min, sec);
} else {
if (size_str) {