mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue