diff options
author | Frederic Robra | 2019-08-23 12:09:03 +0200 |
---|---|---|
committer | Frederic Robra | 2019-08-23 12:09:03 +0200 |
commit | f6c99126c9df1cae6a8d9b51998760a5896f4e9d (patch) | |
tree | 7cb2032c6e2960eed328dcff9903ae41886a18c8 /src/kernel/dnbd3.h | |
parent | changed strategy to connect to diffrent sockets (diff) | |
download | dnbd3-ng-f6c99126c9df1cae6a8d9b51998760a5896f4e9d.tar.gz dnbd3-ng-f6c99126c9df1cae6a8d9b51998760a5896f4e9d.tar.xz dnbd3-ng-f6c99126c9df1cae6a8d9b51998760a5896f4e9d.zip |
moved mq part to new file
fixed various bugs
Diffstat (limited to 'src/kernel/dnbd3.h')
-rw-r--r-- | src/kernel/dnbd3.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/kernel/dnbd3.h b/src/kernel/dnbd3.h index 8fabc35..1cf302f 100644 --- a/src/kernel/dnbd3.h +++ b/src/kernel/dnbd3.h @@ -39,14 +39,11 @@ - -#define RTT_FACTOR(rtt) (((rtt) * 3) / 2) - /** - * limit to which the other connected servers are only allowed to be that worser - * then the best rtt + * factor to which the next server is choosen or the same */ -#define RTT_THRESOULD_LIMIT(best_rtt) ((best_rtt) * 10) +#define RTT_FACTOR(rtt) (((rtt) * 3) / 2) + /** * turn on/off debug information (1/0) @@ -219,7 +216,7 @@ struct dnbd3_cmd { #define dnbd3_set_rtt_unknown(server) \ (server)->rtts[0] = (server)->rtts[1] = (server)->rtts[2] \ = (server)->rtts[3] = (server)->avg_rtt = \ - RTT_UNREACHABLE / 2; + RTT_UNKNOWN; /** |