From be6840770775557934f00748a99fd508fc507d19 Mon Sep 17 00:00:00 2001 From: jrandom <jrandom> Date: Tue, 12 Oct 2004 21:50:17 +0000 Subject: [PATCH] duh (oops) --- router/java/src/net/i2p/router/RouterThrottleImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/RouterThrottleImpl.java b/router/java/src/net/i2p/router/RouterThrottleImpl.java index 9229bc59f3..551e287b82 100644 --- a/router/java/src/net/i2p/router/RouterThrottleImpl.java +++ b/router/java/src/net/i2p/router/RouterThrottleImpl.java @@ -137,7 +137,7 @@ class RouterThrottleImpl implements RouterThrottle { if (avg < numTunnels) { // we're accelerating, lets try not to take on too much too fast double probAccept = avg / numTunnels; - if (_context.random().nextDouble() >= probAccept) { + if (_context.random().nextDouble() < probAccept) { // ok } else { if (_log.shouldLog(Log.WARN)) @@ -156,7 +156,7 @@ class RouterThrottleImpl implements RouterThrottle { double avg60m = tunnelTestTime60m.getAverageValue(); if (avg10m > avg60m) { double probAccept = avg60m/avg10m; - if (_context.random().nextDouble() >= probAccept) { + if (_context.random().nextDouble() < probAccept) { // ok } else { if (_log.shouldLog(Log.WARN)) -- GitLab