mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-04-18 12:14:56 +02:00
CLEANUP: sample: fix the comment regarding the range of the thread sample fetch
The comment says "between 1 and nbthread" while it's in fact between 0 and nbthread-1 and this is also documented like this in the config manual. No backport needed though it cannot hurt.
This commit is contained in:
parent
9c6e07c43f
commit
b943d2a7eb
@ -5062,7 +5062,7 @@ smp_fetch_pid(const struct arg *args, struct sample *smp, const char *kw, void *
|
||||
}
|
||||
|
||||
|
||||
/* returns the number of the current process (between 1 and nbproc */
|
||||
/* returns the number of the current process (between 1 and nbproc) */
|
||||
static int
|
||||
smp_fetch_proc(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||
{
|
||||
@ -5071,7 +5071,7 @@ smp_fetch_proc(const struct arg *args, struct sample *smp, const char *kw, void
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* returns the number of the current thread (between 1 and nbthread */
|
||||
/* returns the number of the current thread (between 0 and nbthread-1) */
|
||||
static int
|
||||
smp_fetch_thread(const struct arg *args, struct sample *smp, const char *kw, void *private)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user