diff options
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; |
