summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 59268b1..717e943 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -5,6 +5,7 @@
5#include <stdlib.h> 5#include <stdlib.h>
6#include <arpa/inet.h> 6#include <arpa/inet.h>
7#include <sys/types.h> 7#include <sys/types.h>
8#include <sys/uio.h>
8#include <sys/mman.h> 9#include <sys/mman.h>
9#include <stdio.h> 10#include <stdio.h>
10#include <string.h> 11#include <string.h>
@@ -299,8 +300,6 @@ void stats_issue_event( ot_status_event event, int is_tcp, size_t event_data ) {
299 break; 300 break;
300 case EVENT_SCRAPE: 301 case EVENT_SCRAPE:
301 if( is_tcp ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++; 302 if( is_tcp ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++;
302 case EVENT_CONNECT:
303 if( is_tcp ) ot_overall_tcp_connects++; else ot_overall_udp_connects++;
304 case EVENT_FULLSCRAPE: 303 case EVENT_FULLSCRAPE:
305 ot_full_scrape_count++; 304 ot_full_scrape_count++;
306 ot_full_scrape_size += event_data; 305 ot_full_scrape_size += event_data;