mirror of
https://github.com/transmission/transmission
synced 2025-02-07 15:04:13 +00:00
revert r11894
This commit is contained in:
parent
634c09f9b0
commit
e4fb51a778
1 changed files with 2 additions and 2 deletions
4
third-party/dht/dht.c
vendored
4
third-party/dht/dht.c
vendored
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue