src/backend.c
static int
smp_fetch_nbsrv(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;
	px = args->data.prx;

	if (px->srv_act)
		smp->data.uint = px->srv_act;
	else if (px->lbprm.fbck)
		smp->data.uint = 1;
	else
		smp->data.uint = px->srv_bck;

	return 1;
}
/* set temp integer to the number of enabled servers on the proxy.
 * Accepts exactly 1 argument. Argument is a backend, 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 backend, 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 backend other types will lead to undefined behaviour .
static int
smp_fetch_nbsrv(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;
	px = args->data.prx;
	if (px->srv_act)
		smp->data.uint = px->srv_act;
	else if (px->lbprm.fbck)
		smp->data.uint = 1;
	else
		smp->data.uint = px->srv_bck;
	return 1;
}
static int smp_fetch_nbsrv ( 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 ; px = args -> data . prx ; if ( px -> srv_act ) smp -> data . uint = px -> srv_act ; else if ( px -> lbprm . fbck ) smp -> data . uint = 1 ; else smp -> data . uint = px -> srv_bck ; 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 .