From 284451110add7b95c6ddaa2d2aa21fc7528e4f2b 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. Change-Id: I2fcc4fd382723fb7e93cb4d4dad03dae682cc1a8 BUG: 1437748 Signed-off-by: AnkitRaj 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 --- cli/src/cli-rpc-ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index c79094337b2..b3219f5560a 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