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_stats.c | |
parent | 8741c91a7d6f9833301383aa819872e16ed43e25 (diff) |
Make woodpecker spotting more usable by adjusting count every 2 minutes
Diffstat (limited to 'ot_stats.c')
-rw-r--r-- | ot_stats.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -731,6 +731,14 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event | |||
731 | } | 731 | } |
732 | } | 732 | } |
733 | 733 | ||
734 | void stats_cleanup() { | ||
735 | #ifdef WANT_SPOT_WOODPECKER | ||
736 | pthread_mutex_lock( &g_woodpeckers_mutex ); | ||
737 | stats_shift_down_network_count( &stats_woodpeckers_tree, 0, 1 ); | ||
738 | pthread_mutex_unlock( &g_woodpeckers_mutex ); | ||
739 | #endif | ||
740 | } | ||
741 | |||
734 | static void * stats_worker( void * args ) { | 742 | static void * stats_worker( void * args ) { |
735 | int iovec_entries; | 743 | int iovec_entries; |
736 | struct iovec *iovector; | 744 | struct iovec *iovector; |