summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit <git>2015-04-27 20:06:17 +0000
committergit <git>2015-04-27 20:06:17 +0000
commite276eb1aeabfd6d80e14d34d5aef6255bdacd787 (patch)
tree285ff40cf021cae04d8f7b37c781c3f8a9148fd5
parente462e3dfa2a8bfbc99d18461d8bb683589d43ef0 (diff)
downloadopentracker-e276eb1aeabfd6d80e14d34d5aef6255bdacd787.tar.gz
opentracker-e276eb1aeabfd6d80e14d34d5aef6255bdacd787.zip
Fix typo in stat reporting, use udp and not tcp counter. Thanks to zebulon
-rw-r--r--ot_stats.c4
1 files 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, " <seeds>\n <count>%llu</count>\n </seeds>\n", stats.seed_count );
r += sprintf( r, " <completed>\n <count>%llu</count>\n </completed>\n", ot_overall_completed );
r += sprintf( r, " <connections>\n" );
- r += sprintf( r, " <tcp>\n <accept>%llu</accept>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n </tcp>\n", ot_overall_tcp_connections, ot_overall_tcp_successfulannounces, ot_overall_udp_successfulscrapes );
+ r += sprintf( r, " <tcp>\n <accept>%llu</accept>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n </tcp>\n", ot_overall_tcp_connections, ot_overall_tcp_successfulannounces, ot_overall_tcp_successfulscrapes );
r += sprintf( r, " <udp>\n <overall>%llu</overall>\n <connect>%llu</connect>\n <announce>%llu</announce>\n <scrape>%llu</scrape>\n <missmatch>%llu</missmatch>\n </udp>\n", ot_overall_udp_connections, ot_overall_udp_connects, ot_overall_udp_successfulannounces, ot_overall_udp_successfulscrapes, ot_overall_udp_connectionidmissmatches );
r += sprintf( r, " <livesync>\n <count>%llu</count>\n </livesync>\n", ot_overall_sync_count );
r += sprintf( r, " </connections>\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";