1
0
mirror of git://erdgeist.org/opentracker synced 2025-02-10 14:06:26 +00:00

dont count scrapes as full scrapes, fall through fail

This commit is contained in:
Dirk Engling 2015-11-26 20:30:00 +01:00
parent a215479d1a
commit 75c216c82d

View File

@ -679,6 +679,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
break; break;
case EVENT_SCRAPE: case EVENT_SCRAPE:
if( proto == FLAG_TCP ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++; if( proto == FLAG_TCP ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++;
break;
case EVENT_FULLSCRAPE: case EVENT_FULLSCRAPE:
ot_full_scrape_count++; ot_full_scrape_count++;
ot_full_scrape_size += event_data; ot_full_scrape_size += event_data;