From 7ab634b6f6947fce4acf4bb4e6b40255240981e2 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Thu, 1 Feb 2007 22:27:44 +0000 Subject: Make timeouts more human readable --- trackerlogic.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index 6f0e09b..74440f4 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -22,8 +22,10 @@ typedef time_t ot_time; /* Some tracker behaviour tunable */ #define OT_CLIENT_TIMEOUT 30 #define OT_CLIENT_TIMEOUT_CHECKINTERVAL 5 -#define OT_CLIENT_REQUEST_INTERVAL 1800 -#define OT_CLIENT_REQUEST_VARIATION 180 +#define OT_CLIENT_REQUEST_INTERVAL (60*30) +#define OT_CLIENT_REQUEST_VARIATION (60*3) + +#define OT_TORRENT_TIMEOUT ((60*60*24)/OT_POOLS_TIMEOUT) #define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) @@ -35,7 +37,7 @@ typedef time_t ot_time; These pools are sorted by its binary content */ #define OT_POOLS_COUNT 9 -#define OT_POOLS_TIMEOUT 300 +#define OT_POOLS_TIMEOUT (60*5) #define NOW (time(NULL)/OT_POOLS_TIMEOUT) #define OT_VECTOR_MIN_MEMBERS 16 -- cgit v1.2.3