summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordenis <>2007-03-15 21:34:02 +0000
committerdenis <>2007-03-15 21:34:02 +0000
commit50fe661aa782481bf07ffff680ef6f585cc77fa1 (patch)
tree57466912c7ae9695aac8bb867e841bd2ecdf4712
parentf2a0c367214cbfa0627c134c50ea6d78550cc2b6 (diff)
collecting stats for udp connections (2nd try)
-rw-r--r--opentracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index f753048..dcbecaf 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -395,7 +395,7 @@ ANNOUNCE_WORKAROUND:
395 t = time( NULL ) - ot_start_time; 395 t = time( NULL ) - ot_start_time;
396 reply_size = sprintf( static_outbuf + SUCCESS_HTTP_HEADER_LENGTH, 396 reply_size = sprintf( static_outbuf + SUCCESS_HTTP_HEADER_LENGTH,
397 "%i\n%i\n%i seconds (%i hours)\nopentracker - Pretuned by german engineers, currently handling %i connections per second.", 397 "%i\n%i\n%i seconds (%i hours)\nopentracker - Pretuned by german engineers, currently handling %i connections per second.",
398 ot_overall_connections, ot_overall_tcp_successfulannounces+ot_overall_tcp_successfulannounces, (int)t, (int)(t / 3600), (int)ot_overall_connections / ( (int)t ? (int)t : 1 ) ); 398 ot_overall_connections, ot_overall_tcp_successfulannounces+ot_overall_udp_successfulannounces, (int)t, (int)(t / 3600), (int)ot_overall_connections / ( (int)t ? (int)t : 1 ) );
399 break; 399 break;
400 case 12: 400 case 12:
401 if( byte_diff( data, 12, "announce.php" ) ) HTTPERROR_404; 401 if( byte_diff( data, 12, "announce.php" ) ) HTTPERROR_404;