diff options
author | erdgeist <> | 2012-06-03 04:06:32 +0000 |
---|---|---|
committer | erdgeist <> | 2012-06-03 04:06:32 +0000 |
commit | 5233046241ee7270ddb481d63fbed14a55cb66ab (patch) | |
tree | ec059297c768e707de9fc07e12fbdaa6a984c44b /ot_clean.c | |
parent | 8741c91a7d6f9833301383aa819872e16ed43e25 (diff) |
Make woodpecker spotting more usable by adjusting count every 2 minutes
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 | } |