summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
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;