summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-11-26 20:30:00 +0100
committerDirk Engling <erdgeist@erdgeist.org>2015-11-26 20:30:00 +0100
commit75c216c82db5f18b2fea156df16682655029e3c6 (patch)
tree5ec3dfb54928cc9a788c8d1eae541eeb5e9ad000 /ot_stats.c
parenta215479d1a1f0df4759f95357538369664b57e6c (diff)
dont count scrapes as full scrapes, fall through fail
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 36949a3..7e03410 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -679,6 +679,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
679 break; 679 break;
680 case EVENT_SCRAPE: 680 case EVENT_SCRAPE:
681 if( proto == FLAG_TCP ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++; 681 if( proto == FLAG_TCP ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++;
682 break;
682 case EVENT_FULLSCRAPE: 683 case EVENT_FULLSCRAPE:
683 ot_full_scrape_count++; 684 ot_full_scrape_count++;
684 ot_full_scrape_size += event_data; 685 ot_full_scrape_size += event_data;