From 1431786305055e0fe90e012e03278f504a2d8d14 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Mon, 24 Jul 2017 17:54:07 +0530 Subject: glusterd: add rebal estimates time in get-state Fixes: #279 Change-Id: If62fa59042604c9450749d3012c7a962ed0eb374 Signed-off-by: Atin Mukherjee Reviewed-on: https://review.gluster.org/17862 Smoke: Gluster Build System Reviewed-by: Samikshan Bairagya CentOS-regression: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-handler.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 3a6445d8ace..2968c1413d6 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -5522,6 +5522,8 @@ glusterd_get_state (rpcsvc_request_t *req, dict_t *dict) volinfo->rebal.rebalance_files); fprintf (fp, "Volume%d.rebalance.data: %s\n", count, gf_uint64_2human_readable (volinfo->rebal.rebalance_data)); + fprintf (fp, "Volume%d.time_left: %"PRIu64"\n", count, + volinfo->rebal.time_left); if (volinfo->type == GF_CLUSTER_TYPE_TIER) { ret = glusterd_volume_get_hot_tier_type_str ( -- cgit