mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-07 14:01:54 +00:00
BUG/MINOR: cli: "show cli sockets" wouldn't list all processes
A small bug in "show cli sockets" made it limit the output to the first 8 processes only.
This commit is contained in:
parent
eceddf7225
commit
20c5e52ac7
@ -799,7 +799,7 @@ static int cli_io_handler_show_cli_sock(struct appctx *appctx)
|
||||
if (bind_conf->bind_proc != 0) {
|
||||
int pos;
|
||||
|
||||
for (pos = 0; pos < sizeof(bind_conf->bind_proc); pos++) {
|
||||
for (pos = 0; pos < 8 * sizeof(bind_conf->bind_proc); pos++) {
|
||||
if (bind_conf->bind_proc & (1 << pos)) {
|
||||
chunk_appendf(&trash, "%d,", pos+1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user