diff options
Diffstat (limited to 'ot_clean.c')
-rw-r--r-- | ot_clean.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -16,6 +16,7 @@ | |||
16 | #include "ot_mutex.h" | 16 | #include "ot_mutex.h" |
17 | #include "ot_vector.h" | 17 | #include "ot_vector.h" |
18 | #include "ot_clean.h" | 18 | #include "ot_clean.h" |
19 | #include "ot_stats.h" | ||
19 | 20 | ||
20 | /* Returns amount of removed peers */ | 21 | /* Returns amount of removed peers */ |
21 | static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) { | 22 | static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, time_t timedout, int *removed_seeders ) { |
@@ -121,6 +122,7 @@ static void * clean_worker( void * args ) { | |||
121 | return NULL; | 122 | return NULL; |
122 | usleep( OT_CLEAN_SLEEP ); | 123 | usleep( OT_CLEAN_SLEEP ); |
123 | } | 124 | } |
125 | stats_cleanup(); | ||
124 | } | 126 | } |
125 | return NULL; | 127 | return NULL; |
126 | } | 128 | } |