]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
collecting stats for udp connections (2nd try)
authordenis <>
Thu, 15 Mar 2007 21:34:02 +0000 (21:34 +0000)
committerdenis <>
Thu, 15 Mar 2007 21:34:02 +0000 (21:34 +0000)
opentracker.c

index f753048032b9f9d55c63188c4fdb3c23d0d1bf6e..dcbecaf8355832adde079e3857e7126506d41ecc 100644 (file)
@@ -395,7 +395,7 @@ ANNOUNCE_WORKAROUND:
     t = time( NULL ) - ot_start_time;
     reply_size = sprintf( static_outbuf + SUCCESS_HTTP_HEADER_LENGTH,
                           "%i\n%i\n%i seconds (%i hours)\nopentracker - Pretuned by german engineers, currently handling %i connections per second.",
-                          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 ) );
+                          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 ) );
     break;
   case 12:
     if( byte_diff( data, 12, "announce.php" ) ) HTTPERROR_404;