From 791ae9e9f4f3ca3764049cfe1a8b7a832e338a8a Mon Sep 17 00:00:00 2001 From: sr Date: Sat, 25 Aug 2012 21:58:26 +0200 Subject: [KERNEL] Make rtt threshold relative --- src/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.h') 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 -- cgit v1.2.3-55-g7522