diff options
| -rw-r--r-- | ot_stats.c | 3 | ||||
| -rw-r--r-- | ot_stats.h | 3 |
2 files changed, 5 insertions, 1 deletions
| @@ -59,6 +59,7 @@ static char * ot_failed_request_names[] = { "302 Redirect", "400 Par | |||
| 59 | static unsigned long long ot_renewed[OT_PEER_TIMEOUT]; | 59 | static unsigned long long ot_renewed[OT_PEER_TIMEOUT]; |
| 60 | static unsigned long long ot_overall_sync_count; | 60 | static unsigned long long ot_overall_sync_count; |
| 61 | static unsigned long long ot_overall_stall_count; | 61 | static unsigned long long ot_overall_stall_count; |
| 62 | static unsigned long long g_stats_connid_missmatches; | ||
| 62 | 63 | ||
| 63 | static time_t ot_start_time; | 64 | static time_t ot_start_time; |
| 64 | 65 | ||
| @@ -723,6 +724,8 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event | |||
| 723 | pthread_mutex_unlock( &g_woodpeckers_mutex ); | 724 | pthread_mutex_unlock( &g_woodpeckers_mutex ); |
| 724 | break; | 725 | break; |
| 725 | #endif | 726 | #endif |
| 727 | case EVENT_CONNID_MISSMATCH: | ||
| 728 | ++g_stats_connid_missmatches; | ||
| 726 | default: | 729 | default: |
| 727 | break; | 730 | break; |
| 728 | } | 731 | } |
| @@ -20,7 +20,8 @@ typedef enum { | |||
| 20 | EVENT_FULLSCRAPE, /* TCP only */ | 20 | EVENT_FULLSCRAPE, /* TCP only */ |
| 21 | EVENT_FAILED, | 21 | EVENT_FAILED, |
| 22 | EVENT_BUCKET_LOCKED, | 22 | EVENT_BUCKET_LOCKED, |
| 23 | EVENT_WOODPECKER | 23 | EVENT_WOODPECKER, |
| 24 | EVENT_CONNID_MISSMATCH | ||
| 24 | } ot_status_event; | 25 | } ot_status_event; |
| 25 | 26 | ||
| 26 | enum { | 27 | enum { |
