From ec531730ababd42f01a5b30da0cabf5e5a9577f9 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 16 Jan 2007 01:57:06 +0000 Subject: Do some timeout checking on the first possible moment --- opentracker.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'opentracker.c') diff --git a/opentracker.c b/opentracker.c index 64dbe9f..dfaafca 100644 --- a/opentracker.c +++ b/opentracker.c @@ -273,7 +273,7 @@ e500: reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", ot_overall_connections, ot_overall_connections, (int)seconds_elapsed, - (int)(seconds_elapsed / 3600), ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); + (int)(seconds_elapsed / 3600), (int)ot_overall_connections / ( (int)seconds_elapsed ? (int)seconds_elapsed : 1 ) ); } break; default: /* neither *scrape nor announce */ @@ -399,7 +399,6 @@ allparsed: io_wantread( s ); taia_now( &next_timeout_check ); - taia_addsec( &next_timeout_check, &next_timeout_check, OT_CLIENT_TIMEOUT_CHECKINTERVAL ); for (;;) { int64 i; -- cgit v1.2.3