mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-24 02:03:01 +00:00
TunnelPool: Reduce expl. quantity adder for ff since we're
doing mostly direct lookups now, and delay adding them at startup to give client tunnels a chance
This commit is contained in:
1 parent
f0961a9658
commit
ef32d37073
1 file changed
+5
-2
@@ -332,8 +332,11 @@ public class TunnelPool {
|
||||
*/
|
||||
private int getAdjustedTotalQuantity() {
|
||||
int rv = _settings.getTotalQuantity();
|
||||
if (_settings.isExploratory() && _context.netDb().floodfillEnabled())
|
||||
rv += 3;
|
||||
// TODO high-bw non-ff also
|
||||
if (_settings.isExploratory() && _context.netDb().floodfillEnabled() &&
|
||||
_context.router().getUptime() > 5*60*1000) {
|
||||
rv += 2;
|
||||
}
|
||||
if (_settings.isExploratory() && rv > 1) {
|
||||
RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire");
|
||||
RateStat r = _context.statManager().getRate("tunnel.buildExploratoryReject");
|
||||
|
||||
Reference in new issue
Block a user