summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit <git>2015-11-26 19:30:16 +0000
committergit <git>2015-11-26 19:30:16 +0000
commit5948ee5986d2bd4416e5f5e65c4f8f0ddf1ef27a (patch)
tree6fbcb2f27f6b6c518654c27b67c0d26fe5326445
parentc12b0059b765a3eb1f67022b48eaba929901ec8e (diff)
downloadopentracker-5948ee5986d2bd4416e5f5e65c4f8f0ddf1ef27a.tar.gz
opentracker-5948ee5986d2bd4416e5f5e65c4f8f0ddf1ef27a.zip
dont count scrapes as full scrapes, fall through fail
-rw-r--r--ot_stats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 3dda714..84d65c3 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
break;
case EVENT_SCRAPE:
if( proto == FLAG_TCP ) ot_overall_tcp_successfulscrapes++; else ot_overall_udp_successfulscrapes++;
+ break;
case EVENT_FULLSCRAPE:
ot_full_scrape_count++;
ot_full_scrape_size += event_data;
@@ -769,4 +770,4 @@ void stats_deinit( ) {
pthread_cancel( thread_id );
}
-const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.73 $\n";
+const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.74 $\n";