From 0d36a8754e75fbbbc55dd9d7bad311fce3b35fae Mon Sep 17 00:00:00 2001 From: denis <> Date: Wed, 3 Oct 2007 22:57:35 +0000 Subject: [PATCH] fixed some stat output --- opentracker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentracker.c b/opentracker.c index 02aeb4a..67e9f9a 100644 --- a/opentracker.c +++ b/opentracker.c @@ -473,7 +473,7 @@ ANNOUNCE_WORKAROUND: t = time( NULL ) - ot_start_time; reply_size = sprintf( static_outbuf + SUCCESS_HTTP_HEADER_LENGTH, "%llu\n%llu\n%i seconds (%i hours)\nopentracker - Pretuned by german engineers, currently handling %llu connections per second.", - ot_overall_tcp_connections+ot_overall_udp_connections, ot_overall_tcp_successfulannounces+ot_overall_udp_successfulannounces, (int)t, (int)(t / 3600), ot_overall_tcp_connections / ( (unsigned int)t ? (unsigned int)t : 1 ) ); + ot_overall_tcp_connections+ot_overall_udp_connections, ot_overall_tcp_successfulannounces+ot_overall_udp_successfulannounces, (int)t, (int)(t / 3600), (ot_overall_tcp_connections+ot_overall_udp_connections) / ( (unsigned int)t ? (unsigned int)t : 1 ) ); break; case 12: if( byte_diff( data, 12, "announce.php" ) ) HTTPERROR_404;