diff options
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h index 78c19c9..5567013 100644 --- a/src/config.h +++ b/src/config.h @@ -43,7 +43,8 @@ #define SOCKET_TIMEOUT_CLIENT_DISCOVERY 1 #define NUMBER_SERVERS 8 -#define RTT_THRESHOLD 1000 +#define RTT_THRESHOLD_FACTOR(us) (((us) * 2) / 3) // 2/3 = current to best must be 33% worse +#define RTT_UNREACHABLE 0x7FFFFFFul // Use this value for timeout/unreachable as RTT. Don't set too high or you might get overflows. 0x7FFFFFF = 134 seconds // This must be a power of two: #define RTT_BLOCK_SIZE 4096 |