Klaus Demo nginx / 665b9fd
set absolute weight, this fixes bogus "no live upstream" case when last upstream is down while live one has negative weight Igor Sysoev 14 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
604604 }
605605
606606 for (i = 0; i < peers->number; i++) {
607 peer[i].current_weight += peer[i].weight;
607 peer[i].current_weight = peer[i].weight;
608608 }
609609 }
610610 }