From adbce8e0dd7cfc5c92d7b7edf72cb492014afce8 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 6 Nov 2018 17:37:10 +0100 Subject: [PATCH] MINOR: cli: show the number of reload in 'show proc' Displays the number of reload in the life of each worker. --- src/cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.c b/src/cli.c index 510e1e349..999e4c09a 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) {