Changeset e20310d


Ignore:
Timestamp:
Mar 6, 2017 8:38:38 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
da00b955
Parents:
5f96067
Message:

Throttle: Fix disable of probabalistic throttling (ticket #1963)
Fixes this checkin:

Revision: c52409bf5d7b422c23a62eecfa50b98d7c74f8df
Date: 01/16/2012
Branch: i2p.i2p
Don't throttle tunnel creation if using a higher than default router.maxParticipatingTunnels setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterThrottleImpl.java

    r5f96067 re20310d  
    198198        }
    199199
    200         // Throttle tunnels if min. throttle level is exceeded and default max participating tunnels (or fewer) is used.
    201         if ((numTunnels > getMinThrottleTunnels()) && (DEFAULT_MAX_TUNNELS <= maxTunnels)) {
     200        /*
     201         * Throttle if we go above a minimum level of tunnels AND the maximum participating
     202         * tunnels is default or lower.
     203         */
     204        if ((numTunnels > getMinThrottleTunnels()) && (DEFAULT_MAX_TUNNELS >= maxTunnels)) {
    202205            Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(10*60*1000);
    203206            if (avgTunnels != null) {
Note: See TracChangeset for help on using the changeset viewer.