summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trackerlogic.h8
1 files changed, 5 insertions, 3 deletions
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;
22/* Some tracker behaviour tunable */ 22/* Some tracker behaviour tunable */
23#define OT_CLIENT_TIMEOUT 30 23#define OT_CLIENT_TIMEOUT 30
24#define OT_CLIENT_TIMEOUT_CHECKINTERVAL 5 24#define OT_CLIENT_TIMEOUT_CHECKINTERVAL 5
25#define OT_CLIENT_REQUEST_INTERVAL 1800 25#define OT_CLIENT_REQUEST_INTERVAL (60*30)
26#define OT_CLIENT_REQUEST_VARIATION 180 26#define OT_CLIENT_REQUEST_VARIATION (60*3)
27
28#define OT_TORRENT_TIMEOUT ((60*60*24)/OT_POOLS_TIMEOUT)
27 29
28#define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) ) 30#define OT_CLIENT_REQUEST_INTERVAL_RANDOM ( OT_CLIENT_REQUEST_INTERVAL + (int)( random( ) % OT_CLIENT_REQUEST_VARIATION ) )
29 31
@@ -35,7 +37,7 @@ typedef time_t ot_time;
35 These pools are sorted by its binary content */ 37 These pools are sorted by its binary content */
36 38
37#define OT_POOLS_COUNT 9 39#define OT_POOLS_COUNT 9
38#define OT_POOLS_TIMEOUT 300 40#define OT_POOLS_TIMEOUT (60*5)
39#define NOW (time(NULL)/OT_POOLS_TIMEOUT) 41#define NOW (time(NULL)/OT_POOLS_TIMEOUT)
40 42
41#define OT_VECTOR_MIN_MEMBERS 16 43#define OT_VECTOR_MIN_MEMBERS 16