diff options
author | sr | 2012-08-25 21:58:26 +0200 |
---|---|---|
committer | sr | 2012-08-25 21:58:26 +0200 |
commit | 791ae9e9f4f3ca3764049cfe1a8b7a832e338a8a (patch) | |
tree | a3a22bf97a19ba999c2685a092818202bc30b119 /src/config.h | |
parent | [KERNEL] Fix receive thread not reacting to wake_up (diff) | |
download | dnbd3-791ae9e9f4f3ca3764049cfe1a8b7a832e338a8a.tar.gz dnbd3-791ae9e9f4f3ca3764049cfe1a8b7a832e338a8a.tar.xz dnbd3-791ae9e9f4f3ca3764049cfe1a8b7a832e338a8a.zip |
[KERNEL] Make rtt threshold relative
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 |