mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02:00
MINOR: cli: show the number of reload in 'show proc'
Displays the number of reload in the life of each worker.
This commit is contained in:
parent
2d372c2aa1
commit
adbce8e0dd
@ -1402,12 +1402,12 @@ static int cli_io_handler_show_proc(struct appctx *appctx)
|
|||||||
|
|
||||||
chunk_reset(&trash);
|
chunk_reset(&trash);
|
||||||
|
|
||||||
chunk_printf(&trash, "# <PID> <type> <relative PID>\n");
|
chunk_printf(&trash, "# <PID> <type> <relative PID> <reloads>\n");
|
||||||
chunk_appendf(&trash, "%u %s %u\n", getpid(), "master", 0);
|
chunk_appendf(&trash, "%u %s %u %d\n", getpid(), "master", 0, -1);
|
||||||
|
|
||||||
|
|
||||||
list_for_each_entry(child, &proc_list, list) {
|
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) {
|
if (ci_putchk(si_ic(si), &trash) == -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user