Add a concept of debt to RateLimiter, save a bit of RAM.
This commit is contained in:
parent
3af55f4423
commit
6a24ac4f00
4 changed files with 58 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue