From dc90c8867cd39a42c85ee15d711b84c7206677cf Mon Sep 17 00:00:00 2001
From: erdgeist <>
Date: Mon, 28 May 2012 19:05:02 +0000
Subject: Report connection id missmatch count
---
ot_stats.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'ot_stats.c')
diff --git a/ot_stats.c b/ot_stats.c
index 5e7a9f3..d37424c 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -48,6 +48,7 @@ static unsigned long long ot_overall_tcp_successfulannounces = 0;
static unsigned long long ot_overall_udp_successfulannounces = 0;
static unsigned long long ot_overall_tcp_successfulscrapes = 0;
static unsigned long long ot_overall_udp_successfulscrapes = 0;
+static unsigned long long ot_overall_udp_connectionidmissmatches = 0;
static unsigned long long ot_overall_tcp_connects = 0;
static unsigned long long ot_overall_udp_connects = 0;
static unsigned long long ot_overall_completed = 0;
@@ -59,7 +60,6 @@ static char * ot_failed_request_names[] = { "302 Redirect", "400 Par
static unsigned long long ot_renewed[OT_PEER_TIMEOUT];
static unsigned long long ot_overall_sync_count;
static unsigned long long ot_overall_stall_count;
-static unsigned long long g_stats_connid_missmatches;
static time_t ot_start_time;
@@ -539,7 +539,7 @@ static size_t stats_return_everything( char * reply ) {
r += sprintf( r, " \n %llu\n \n", ot_overall_completed );
r += sprintf( r, " \n" );
r += sprintf( r, " \n %llu\n %llu\n %llu\n \n", ot_overall_tcp_connections, ot_overall_tcp_successfulannounces, ot_overall_udp_successfulscrapes );
- r += sprintf( r, " \n %llu\n %llu\n %llu\n %llu\n \n", ot_overall_udp_connections, ot_overall_udp_connects, ot_overall_udp_successfulannounces, ot_overall_udp_successfulscrapes );
+ r += sprintf( r, " \n %llu\n %llu\n %llu\n %llu\n %llu\n \n", ot_overall_udp_connections, ot_overall_udp_connects, ot_overall_udp_successfulannounces, ot_overall_udp_successfulscrapes, ot_overall_udp_connectionidmissmatches );
r += sprintf( r, " \n %llu\n \n", ot_overall_sync_count );
r += sprintf( r, " \n" );
r += sprintf( r, " \n" );
@@ -725,7 +725,7 @@ void stats_issue_event( ot_status_event event, PROTO_FLAG proto, uintptr_t event
break;
#endif
case EVENT_CONNID_MISSMATCH:
- ++g_stats_connid_missmatches;
+ ++ot_overall_udp_connectionidmissmatches;
default:
break;
}
--
cgit v1.2.3