Add low-bandwidth mode
This commit is contained in:
parent
98b190c626
commit
3c9ea2b667
6 changed files with 42 additions and 10 deletions
|
@ -268,7 +268,8 @@ void Multicaster::send(
|
|||
|
||||
const unsigned int gatherLimit = (limit - (unsigned int)gs.members.size()) + 1;
|
||||
|
||||
if ((gs.members.empty())||((now - gs.lastExplicitGather) >= ZT_MULTICAST_EXPLICIT_GATHER_DELAY)) {
|
||||
int timerScale = RR->node->lowBandwidthModeEnabled() ? 3 : 1;
|
||||
if ((gs.members.empty())||((now - gs.lastExplicitGather) >= (ZT_MULTICAST_EXPLICIT_GATHER_DELAY * timerScale))) {
|
||||
gs.lastExplicitGather = now;
|
||||
|
||||
Address explicitGatherPeers[16];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue