From: Jordan Lee Date: Tue, 15 Feb 2011 19:51:31 +0000 (+0000) Subject: revert r11894 X-Git-Tag: 2.30b1~359 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4fb51a7784a057f62f9c9921edb4ee31957662d;p=transmission revert r11894 --- diff --git a/third-party/dht/dht.c b/third-party/dht/dht.c index 03b39e8ca..faa57269f 100644 --- a/third-party/dht/dht.c +++ b/third-party/dht/dht.c @@ -310,7 +310,7 @@ static struct timeval now; static time_t mybucket_grow_time, mybucket6_grow_time; static time_t expire_stuff_time; -#define MAX_TOKEN_BUCKET_TOKENS 4000 +#define MAX_TOKEN_BUCKET_TOKENS 40 static time_t token_bucket_time; static int token_bucket_tokens; @@ -1714,7 +1714,7 @@ token_bucket(void) { if(token_bucket_tokens == 0) { token_bucket_tokens = MIN(MAX_TOKEN_BUCKET_TOKENS, - 100 * (now.tv_sec - token_bucket_time)); + 4 * (now.tv_sec - token_bucket_time)); token_bucket_time = now.tv_sec; }