Mercurial > hg > nginx-quic
comparison src/http/ngx_http_upstream_round_robin.c @ 6474:2cd019520210
Style.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 30 Mar 2016 11:52:16 +0300 |
parents | cca856715722 |
children | b3b7e33083ac |
comparison
equal
deleted
inserted
replaced
6473:9d7326d3f474 | 6474:2cd019520210 |
---|---|
478 | 478 |
479 n = (rrp->peers->number + (8 * sizeof(uintptr_t) - 1)) | 479 n = (rrp->peers->number + (8 * sizeof(uintptr_t) - 1)) |
480 / (8 * sizeof(uintptr_t)); | 480 / (8 * sizeof(uintptr_t)); |
481 | 481 |
482 for (i = 0; i < n; i++) { | 482 for (i = 0; i < n; i++) { |
483 rrp->tried[i] = 0; | 483 rrp->tried[i] = 0; |
484 } | 484 } |
485 | 485 |
486 ngx_http_upstream_rr_peers_unlock(peers); | 486 ngx_http_upstream_rr_peers_unlock(peers); |
487 | 487 |
488 rc = ngx_http_upstream_get_round_robin_peer(pc, rrp); | 488 rc = ngx_http_upstream_get_round_robin_peer(pc, rrp); |