diff options
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index d1ef063..f6128fd 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -15,12 +15,15 @@ | |||
15 | /* Libowfat */ | 15 | /* Libowfat */ |
16 | #include "byte.h" | 16 | #include "byte.h" |
17 | #include "io.h" | 17 | #include "io.h" |
18 | #include "iob.h" | ||
19 | #include "array.h" | ||
18 | 20 | ||
19 | /* Opentracker */ | 21 | /* Opentracker */ |
20 | #include "trackerlogic.h" | 22 | #include "trackerlogic.h" |
21 | #include "ot_mutex.h" | 23 | #include "ot_mutex.h" |
22 | #include "ot_stats.h" | 24 | #include "ot_stats.h" |
23 | #include "ot_clean.h" | 25 | #include "ot_clean.h" |
26 | #include "ot_http.h" | ||
24 | #include "ot_accesslist.h" | 27 | #include "ot_accesslist.h" |
25 | #include "ot_fullscrape.h" | 28 | #include "ot_fullscrape.h" |
26 | #include "ot_livesync.h" | 29 | #include "ot_livesync.h" |
@@ -394,6 +397,10 @@ void trackerlogic_init( ) { | |||
394 | srandom( time(NULL) ); | 397 | srandom( time(NULL) ); |
395 | g_tracker_id = random(); | 398 | g_tracker_id = random(); |
396 | 399 | ||
400 | if( !g_stats_path ) | ||
401 | g_stats_path = "stats"; | ||
402 | g_stats_path_len = strlen( g_stats_path ); | ||
403 | |||
397 | /* Initialise background worker threads */ | 404 | /* Initialise background worker threads */ |
398 | mutex_init( ); | 405 | mutex_init( ); |
399 | clean_init( ); | 406 | clean_init( ); |