summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-13 12:26:08 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-13 12:26:08 +0200
commit2eeae0a65a137ab1796ff93133201cfcf3cab750 (patch)
treec72ec77bd797c69e321a0478596e525e70143cae /opentracker.c
parent3a6d99dd467b9bd33146891db1eabc08c1fe04cf (diff)
Allow opentracker to start with a random set of torrents for debugging purposes
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 4 insertions, 0 deletions
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 ) {
726 /* Init all sub systems. This call may fail with an exit() */ 726 /* Init all sub systems. This call may fail with an exit() */
727 trackerlogic_init( ); 727 trackerlogic_init( );
728 728
729#ifdef _DEBUG_RANDOMTORRENTS
730 trackerlogic_add_random_torrents(1024*1024*1);
731#endif
732
729 if( statefile ) 733 if( statefile )
730 load_state( statefile ); 734 load_state( statefile );
731 735