mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-07-18 20:26:37 +00:00
Tunnels: Increase per-tunnel bw limits for now
This commit is contained in:
@@ -852,13 +852,13 @@ public class TunnelDispatcher implements Service {
|
||||
int maxTunnels = _context.getProperty(RouterThrottleImpl.PROP_MAX_TUNNELS, RouterThrottleImpl.DEFAULT_MAX_TUNNELS);
|
||||
if (maxTunnels > 25) {
|
||||
if (max >= 2048*1024) // X
|
||||
max /= 12;
|
||||
max /= 6;
|
||||
if (max >= 128*1024) // O/P
|
||||
max /= 8;
|
||||
else if (max <= 48*1024) // K/L
|
||||
max /= 4;
|
||||
else if (max <= 48*1024) // K/L
|
||||
max /= 2;
|
||||
else
|
||||
max = (12*1024) + ((max - (48*1024)) / 6); // M/N
|
||||
max = (24*1024) + ((max - (48*1024)) / 6); // M/N
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user