diff options
author | erdgeist <> | 2007-01-16 01:57:06 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-16 01:57:06 +0000 |
commit | ec531730ababd42f01a5b30da0cabf5e5a9577f9 (patch) | |
tree | 20829cbb00abd37f8f091bf007c9a403f1e81c50 | |
parent | 745985c7263678c99dfb2ec67067a47955d0cacd (diff) |
Do some timeout checking on the first possible moment
-rw-r--r-- | opentracker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index 64dbe9f..dfaafca 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -273,7 +273,7 @@ e500: | |||
273 | reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, | 273 | reply_size = sprintf( static_reply + SUCCESS_HTTP_HEADER_LENGTH, |
274 | "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", | 274 | "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", |
275 | ot_overall_connections, ot_overall_connections, (int)seconds_elapsed, | 275 | ot_overall_connections, ot_overall_connections, (int)seconds_elapsed, |
276 | (int)(seconds_elapsed / 3600), ot_overall_connections / ( seconds_elapsed ? seconds_elapsed : 1 ) ); | 276 | (int)(seconds_elapsed / 3600), (int)ot_overall_connections / ( (int)seconds_elapsed ? (int)seconds_elapsed : 1 ) ); |
277 | } | 277 | } |
278 | break; | 278 | break; |
279 | default: /* neither *scrape nor announce */ | 279 | default: /* neither *scrape nor announce */ |
@@ -399,7 +399,6 @@ allparsed: | |||
399 | 399 | ||
400 | io_wantread( s ); | 400 | io_wantread( s ); |
401 | taia_now( &next_timeout_check ); | 401 | taia_now( &next_timeout_check ); |
402 | taia_addsec( &next_timeout_check, &next_timeout_check, OT_CLIENT_TIMEOUT_CHECKINTERVAL ); | ||
403 | 402 | ||
404 | for (;;) { | 403 | for (;;) { |
405 | int64 i; | 404 | int64 i; |