From 1fd0fd5cc5bdb47d725c8eaaffa78754c3f6ff17 Mon Sep 17 00:00:00 2001 From: AnkitRaj Date: Mon, 8 May 2017 17:52:33 +0530 Subject: 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 > Tested-by: ankitraj > NetBSD-regression: NetBSD Build System > CentOS-regression: Gluster Build System >Reviewed-by: Jeff Darcy Change-Id: I2fcc4fd382723fb7e93cb4d4dad03dae682cc1a8 BUG: 1452000 Signed-off-by: AnkitRaj Reviewed-on: https://review.gluster.org/17327 Tested-by: ankitraj NetBSD-regression: NetBSD Build System Smoke: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Tested-by: Shyamsundar Ranganathan CentOS-regression: Gluster Build System --- cli/src/cli-rpc-ops.c | 6 +++--- 1 file 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) { -- cgit