Home
last modified time | relevance | path

Searched refs:best (Results 1 – 1 of 1) sorted by relevance

/unit/src/
H A Dnxt_upstream_round_robin.c170 nxt_upstream_round_robin_server_t *s, *best; in nxt_upstream_round_robin_server_get() local
172 best = NULL; in nxt_upstream_round_robin_server_get()
189 if (best == NULL || s[i].current_weight > best->current_weight) { in nxt_upstream_round_robin_server_get()
190 best = &s[i]; in nxt_upstream_round_robin_server_get()
194 if (best == NULL || total == 0) { in nxt_upstream_round_robin_server_get()
199 best->current_weight -= total; in nxt_upstream_round_robin_server_get()
200 us->sockaddr = best->sockaddr; in nxt_upstream_round_robin_server_get()
201 us->protocol = best->protocol; in nxt_upstream_round_robin_server_get()
202 us->server.round_robin = best; in nxt_upstream_round_robin_server_get()