From e276eb1aeabfd6d80e14d34d5aef6255bdacd787 Mon Sep 17 00:00:00 2001 From: git Date: Mon, 27 Apr 2015 20:06:17 +0000 Subject: [PATCH] Fix typo in stat reporting, use udp and not tcp counter. Thanks to zebulon --- ot_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ot_stats.c b/ot_stats.c index 3836a8d..3dda714 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -538,7 +538,7 @@ static size_t stats_return_everything( char * reply ) { r += sprintf( r, " \n %llu\n \n", stats.seed_count ); 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 \n", ot_overall_tcp_connections, ot_overall_tcp_successfulannounces, ot_overall_tcp_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" ); @@ -769,4 +769,4 @@ void stats_deinit( ) { pthread_cancel( thread_id ); } -const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.72 $\n"; +const char *g_version_stats_c = "$Source: /home/cvsroot/opentracker/ot_stats.c,v $: $Revision: 1.73 $\n";