From 2eeae0a65a137ab1796ff93133201cfcf3cab750 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 13 Apr 2024 12:26:08 +0200 Subject: Allow opentracker to start with a random set of torrents for debugging purposes --- opentracker.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index e025bfa..596c2a7 100644 --- a/opentracker.c +++ b/opentracker.c @@ -726,6 +726,10 @@ int main( int argc, char **argv ) { /* Init all sub systems. This call may fail with an exit() */ trackerlogic_init( ); +#ifdef _DEBUG_RANDOMTORRENTS + trackerlogic_add_random_torrents(1024*1024*1); +#endif + if( statefile ) load_state( statefile ); -- cgit v1.2.3