mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-16 06:08:15 +00:00
Add a concept of debt to RateLimiter, save a bit of RAM.
This commit is contained in:
@ -274,12 +274,17 @@ error_no_ZT_ARCH_defined;
|
||||
/**
|
||||
* Default balance preload for multicast rate limiters on a network
|
||||
*/
|
||||
#define ZT_MULTICAST_DEFAULT_RATE_PRELOAD 25.0
|
||||
#define ZT_MULTICAST_DEFAULT_RATE_PRELOAD 15000.0
|
||||
|
||||
/**
|
||||
* Absolute maximum balance for multicast rate limiters
|
||||
* Default maximum balance for multicast rate limiters
|
||||
*/
|
||||
#define ZT_MULTICAST_DEFAULT_RATE_MAX 75.0
|
||||
#define ZT_MULTICAST_DEFAULT_RATE_MAX_BALANCE 15000.0
|
||||
|
||||
/**
|
||||
* Default minimum balance for multicast rate limiters (max debt)
|
||||
*/
|
||||
#define ZT_MULTICAST_DEFAULT_RATE_MIN_BALANCE -15000.0
|
||||
|
||||
/**
|
||||
* Delay between scans of the topology active peer DB for peers that need ping
|
||||
|
Reference in New Issue
Block a user