From a9ab9b0c0dbd5de29d1aef9927cca92ac522d4cb Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 8 Dec 2008 02:23:21 +0000 Subject: Make all torrents in their buckets sorted again. --- trackerlogic.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'trackerlogic.h') diff --git a/trackerlogic.h b/trackerlogic.h index c7e2e97..75e98d2 100644 --- a/trackerlogic.h +++ b/trackerlogic.h @@ -38,16 +38,19 @@ typedef time_t ot_time; /* If peers come back before 10 minutes, don't live sync them */ #define OT_CLIENT_SYNC_RENEW_BOUNDARY 10 -/* We maintain a list of 1024 pointers to sorted list of ot_torrent structs - Sort key is, of course, its hash */ -#define OT_BUCKET_COUNT 1024 - /* Number of tracker admin ip addresses allowed */ #define OT_ADMINIP_MAX 64 #define OT_MAX_THREADS 16 #define OT_PEER_TIMEOUT 45 +/* We maintain a list of 1024 pointers to sorted list of ot_torrent structs + Sort key is, of course, its hash */ +#define OT_BUCKET_COUNT_BITS 10 + +#define OT_BUCKET_COUNT (1<