mirror of
git://erdgeist.org/opentracker
synced 2025-01-12 16:00:06 +00:00
Make the amount of random torrents a tunable
This commit is contained in:
parent
cab821f253
commit
04e0eca0a0
@ -722,7 +722,8 @@ int main( int argc, char **argv ) {
|
||||
trackerlogic_init( );
|
||||
|
||||
#ifdef _DEBUG_RANDOMTORRENTS
|
||||
trackerlogic_add_random_torrents(1024*1024*1);
|
||||
fprintf(stderr, "DEBUG: Generating %zd random peers on random torrents. This may take a while. (Setting RANDOMTORRENTS in trackerlogic.h\n", RANDOMTORRENTS);
|
||||
trackerlogic_add_random_torrents(RANDOMTORRENTS);
|
||||
#endif
|
||||
|
||||
if( statefile )
|
||||
|
@ -67,6 +67,10 @@ typedef struct { ot_ip6 address; int bits; }
|
||||
#define OT_BUCKET_COUNT (1<<OT_BUCKET_COUNT_BITS)
|
||||
#define OT_BUCKET_COUNT_SHIFT (32-OT_BUCKET_COUNT_BITS)
|
||||
|
||||
/* if _DEBUG_RANDOMTORRENTS is set, this is the amount of torrents to create
|
||||
on startup */
|
||||
#define RANDOMTORRENTS (1024*1024*1)
|
||||
|
||||
/* From opentracker.c */
|
||||
extern time_t g_now_seconds;
|
||||
extern volatile int g_opentracker_running;
|
||||
|
Loading…
Reference in New Issue
Block a user