summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-14 17:31:16 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-14 17:31:16 +0200
commit04e0eca0a0309a9c5eefcb8317f21fff603f9a59 (patch)
treeb9773298e1b78caf11bba7498ca1b168518450fd /trackerlogic.h
parentcab821f253976a21a1ad5fcf05d9d5fe3b3100c1 (diff)
Make the amount of random torrents a tunable
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 7e6e8ad..e43fcdb 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -67,6 +67,10 @@ typedef struct { ot_ip6 address; int bits; }
67#define OT_BUCKET_COUNT (1<<OT_BUCKET_COUNT_BITS) 67#define OT_BUCKET_COUNT (1<<OT_BUCKET_COUNT_BITS)
68#define OT_BUCKET_COUNT_SHIFT (32-OT_BUCKET_COUNT_BITS) 68#define OT_BUCKET_COUNT_SHIFT (32-OT_BUCKET_COUNT_BITS)
69 69
70/* if _DEBUG_RANDOMTORRENTS is set, this is the amount of torrents to create
71 on startup */
72#define RANDOMTORRENTS (1024*1024*1)
73
70/* From opentracker.c */ 74/* From opentracker.c */
71extern time_t g_now_seconds; 75extern time_t g_now_seconds;
72extern volatile int g_opentracker_running; 76extern volatile int g_opentracker_running;