summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorerdgeist <>2012-06-03 04:06:32 +0000
committererdgeist <>2012-06-03 04:06:32 +0000
commit5233046241ee7270ddb481d63fbed14a55cb66ab (patch)
treeec059297c768e707de9fc07e12fbdaa6a984c44b /ot_stats.c
parent8741c91a7d6f9833301383aa819872e16ed43e25 (diff)
Make woodpecker spotting more usable by adjusting count every 2 minutes
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c8
1 files changed, 8 insertions, 0 deletions
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
731 } 731 }
732} 732}
733 733
734void 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
734static void * stats_worker( void * args ) { 742static void * stats_worker( void * args ) {
735 int iovec_entries; 743 int iovec_entries;
736 struct iovec *iovector; 744 struct iovec *iovector;