summaryrefslogtreecommitdiffstats
path: root/src/server/altservers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/altservers.c')
-rw-r--r--src/server/altservers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/altservers.c b/src/server/altservers.c
index 0054f53..fe4624f 100644
--- a/src/server/altservers.c
+++ b/src/server/altservers.c
@@ -380,7 +380,7 @@ void altservers_serverFailed(const dnbd3_host_t * const host)
// to prevent the counter from increasing rapidly if many images use the
// same uplink. If there's a network hickup, all uplinks will call this
// function and would increase the counter too quickly, disabling the server.
- if ( foundIndex != -1 && timing_diff( &altServers[foundIndex].lastFail, &now ) > SERVER_RTT_DELAY_INIT ) {
+ if ( foundIndex != -1 && timing_diff( &altServers[foundIndex].lastFail, &now ) > SERVER_RTT_INTERVAL_INIT ) {
altServers[foundIndex].numFails += SERVER_UPLINK_FAIL_INCREASE;
altServers[foundIndex].lastFail = now;
if ( lastOk != -1 ) {