nghttpx: Fix max distance in weight group/address cycle comparison
This commit is contained in:
parent
40af31da4c
commit
fa16e66a6d
|
@ -153,7 +153,7 @@ struct DownstreamAddrEntryGreater {
|
|||
if (d == 0) {
|
||||
return rhs.seq < lhs.seq;
|
||||
}
|
||||
return d <= MAX_DOWNSTREAM_ADDR_WEIGHT;
|
||||
return d <= 2 * MAX_DOWNSTREAM_ADDR_WEIGHT - 1;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -182,7 +182,7 @@ struct WeightGroupEntryGreater {
|
|||
if (d == 0) {
|
||||
return rhs.seq < lhs.seq;
|
||||
}
|
||||
return d <= MAX_DOWNSTREAM_ADDR_WEIGHT;
|
||||
return d <= 2 * MAX_DOWNSTREAM_ADDR_WEIGHT - 1;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue