diff options
Diffstat (limited to 'opentracker.c')
| -rw-r--r-- | opentracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c index f69ae70..e415cc3 100644 --- a/opentracker.c +++ b/opentracker.c | |||
| @@ -285,7 +285,7 @@ SCRAPE_WORKAROUND: | |||
| 285 | /* Enough for http header + whole scrape string */ | 285 | /* Enough for http header + whole scrape string */ |
| 286 | if( ( reply_size = return_scrape_for_torrent( hash, SUCCESS_HTTP_HEADER_LENGTH + static_scratch ) ) <= 0 ) HTTPERROR_500; | 286 | if( ( reply_size = return_scrape_for_torrent( hash, SUCCESS_HTTP_HEADER_LENGTH + static_scratch ) ) <= 0 ) HTTPERROR_500; |
| 287 | break; | 287 | break; |
| 288 | case 8: | 288 | case 8: |
| 289 | if( byte_diff(data,8,"announce")) HTTPERROR_404; | 289 | if( byte_diff(data,8,"announce")) HTTPERROR_404; |
| 290 | 290 | ||
| 291 | ANNOUNCE_WORKAROUND: | 291 | ANNOUNCE_WORKAROUND: |
| @@ -383,7 +383,7 @@ ANNOUNCE_WORKAROUND: | |||
| 383 | if( byte_diff(data,11,"mrtg_scrape")) HTTPERROR_404; | 383 | if( byte_diff(data,11,"mrtg_scrape")) HTTPERROR_404; |
| 384 | 384 | ||
| 385 | t = time( NULL ) - ot_start_time; | 385 | t = time( NULL ) - ot_start_time; |
| 386 | reply_size = sprintf( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, | 386 | reply_size = sprintf( static_scratch + SUCCESS_HTTP_HEADER_LENGTH, |
| 387 | "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", | 387 | "%i\n%i\nUp: %i seconds (%i hours)\nPretuned by german engineers, currently handling %i connections per second.", |
| 388 | ot_overall_connections, ot_overall_successfulannounces, (int)t, (int)(t / 3600), (int)ot_overall_connections / ( (int)t ? (int)t : 1 ) ); | 388 | ot_overall_connections, ot_overall_successfulannounces, (int)t, (int)(t / 3600), (int)ot_overall_connections / ( (int)t ? (int)t : 1 ) ); |
| 389 | break; | 389 | break; |
