From: William Lallemand Date: Tue, 6 Nov 2018 16:37:10 +0000 (+0100) Subject: MINOR: cli: show the number of reload in 'show proc' X-Git-Tag: v1.9-dev6~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adbce8e0dd7cfc5c92d7b7edf72cb492014afce8;p=thirdparty%2Fhaproxy.git MINOR: cli: show the number of reload in 'show proc' Displays the number of reload in the life of each worker. --- diff --git a/src/cli.c b/src/cli.c index 510e1e3496..999e4c09aa 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1402,12 +1402,12 @@ static int cli_io_handler_show_proc(struct appctx *appctx) chunk_reset(&trash); - chunk_printf(&trash, "# \n"); - chunk_appendf(&trash, "%u %s %u\n", getpid(), "master", 0); + chunk_printf(&trash, "# \n"); + chunk_appendf(&trash, "%u %s %u %d\n", getpid(), "master", 0, -1); list_for_each_entry(child, &proc_list, list) { - chunk_appendf(&trash, "%u %s %u\n", child->pid, "worker", child->relative_pid); + chunk_appendf(&trash, "%u %s %u %d\n", child->pid, "worker", child->relative_pid, child->reloads); } if (ci_putchk(si_ic(si), &trash) == -1) {