mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 06:11:32 +02: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) {
|
if (bind_conf->bind_proc != 0) {
|
||||||
int pos;
|
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)) {
|
if (bind_conf->bind_proc & (1 << pos)) {
|
||||||
chunk_appendf(&trash, "%d,", pos+1);
|
chunk_appendf(&trash, "%d,", pos+1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user