src/backend.c
static int
smp_fetch_srv_sess_rate(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                        const struct arg *args, struct sample *smp)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = read_freq_ctr(&args->data.srv->sess_per_sec);
	return 1;
}
/* set temp integer to the number of enabled servers on the proxy.
 * Accepts exactly 1 argument. Argument is a server, other types will lead to
 * undefined behaviour.
 */
set temp integer to the number of enabled servers on the proxy.
Accepts exactly 1 argument. Argument is a server, other types will lead to
undefined behaviour.
set temp integer to the number of enabled servers on the proxy . Accepts exactly 1 argument . Argument is a server other types will lead to undefined behaviour .
static int
smp_fetch_srv_sess_rate(struct proxy *px, struct session *l4, void *l7, unsigned int opt,
                        const struct arg *args, struct sample *smp)
{
	smp->flags = SMP_F_VOL_TEST;
	smp->type = SMP_T_UINT;
	smp->data.uint = read_freq_ctr(&args->data.srv->sess_per_sec);
	return 1;
}
static int smp_fetch_srv_sess_rate ( struct proxy * px , struct session * l4 , void * l7 , unsigned int opt , const struct arg * args , struct sample * smp ) { smp -> flags = SMP_F_VOL_TEST ; smp -> type = SMP_T_UINT ; smp -> data . uint = read_freq_ctr ( & args -> data . srv -> sess_per_sec ) ; return 1 ; }
set temp integer to the number of enabled servers on the proxy.
set temp integer to the number of enabled servers on the proxy .