Changeset 11894


Ignore:
Timestamp:
Feb 15, 2011, 7:48:57 PM (11 years ago)
Author:
jordan
Message:

(trunk dht) apply patch from jch to increase the number of token_bucket_tokens.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/dht/dht.c

    r11666 r11894  
    311311static time_t expire_stuff_time;
    312312
    313 #define MAX_TOKEN_BUCKET_TOKENS 40
     313#define MAX_TOKEN_BUCKET_TOKENS 4000
    314314static time_t token_bucket_time;
    315315static int token_bucket_tokens;
     
    17151715    if(token_bucket_tokens == 0) {
    17161716        token_bucket_tokens = MIN(MAX_TOKEN_BUCKET_TOKENS,
    1717                                   4 * (now.tv_sec - token_bucket_time));
     1717                                  100 * (now.tv_sec - token_bucket_time));
    17181718        token_bucket_time = now.tv_sec;
    17191719    }
Note: See TracChangeset for help on using the changeset viewer.