From 5233046241ee7270ddb481d63fbed14a55cb66ab Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sun, 3 Jun 2012 04:06:32 +0000 Subject: Make woodpecker spotting more usable by adjusting count every 2 minutes --- ot_stats.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 018098d..4edfad7 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -731,6 +731,14 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event } } +void stats_cleanup() { +#ifdef WANT_SPOT_WOODPECKER + pthread_mutex_lock( &g_woodpeckers_mutex ); + stats_shift_down_network_count( &stats_woodpeckers_tree, 0, 1 ); + pthread_mutex_unlock( &g_woodpeckers_mutex ); +#endif +} + static void * stats_worker( void * args ) { int iovec_entries; struct iovec *iovector; -- cgit v1.2.3