Changeset 11895


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

revert r11894

File:
1 edited

Legend:

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

    r11894 r11895  
    311311static time_t expire_stuff_time;
    312312
    313 #define MAX_TOKEN_BUCKET_TOKENS 4000
     313#define MAX_TOKEN_BUCKET_TOKENS 40
    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                                   100 * (now.tv_sec - token_bucket_time));
     1717                                  4 * (now.tv_sec - token_bucket_time));
    17181718        token_bucket_time = now.tv_sec;
    17191719    }
Note: See TracChangeset for help on using the changeset viewer.