I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit be684077 authored by jrandom's avatar jrandom Committed by zzz
Browse files

duh (oops)

parent f799a25a
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ class RouterThrottleImpl implements RouterThrottle { ...@@ -137,7 +137,7 @@ class RouterThrottleImpl implements RouterThrottle {
if (avg < numTunnels) { if (avg < numTunnels) {
// we're accelerating, lets try not to take on too much too fast // we're accelerating, lets try not to take on too much too fast
double probAccept = avg / numTunnels; double probAccept = avg / numTunnels;
if (_context.random().nextDouble() >= probAccept) { if (_context.random().nextDouble() < probAccept) {
// ok // ok
} else { } else {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
...@@ -156,7 +156,7 @@ class RouterThrottleImpl implements RouterThrottle { ...@@ -156,7 +156,7 @@ class RouterThrottleImpl implements RouterThrottle {
double avg60m = tunnelTestTime60m.getAverageValue(); double avg60m = tunnelTestTime60m.getAverageValue();
if (avg10m > avg60m) { if (avg10m > avg60m) {
double probAccept = avg60m/avg10m; double probAccept = avg60m/avg10m;
if (_context.random().nextDouble() >= probAccept) { if (_context.random().nextDouble() < probAccept) {
// ok // ok
} else { } else {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment