summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2018-07-08 08:11:01 +0200
committerluccioman <luccioman@users.noreply.github.com>2018-07-08 08:11:01 +0200
commit876bcd2f5477d3a80069fd634cec6364e25181a5 (patch)
treed0c8c56b766adb6da1393eb528b33e5fd5b3fea4 /source
parent534f09e92b2ae7984c401f4f8d8b2921dd97b6cd (diff)
Fixed useless comparison between int parameter and Long.MAX_VALUE
Diffstat (limited to 'source')
-rw-r--r--source/net/yacy/peers/Dispatcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/net/yacy/peers/Dispatcher.java b/source/net/yacy/peers/Dispatcher.java
index b4d609d3f..d38faf903 100644
--- a/source/net/yacy/peers/Dispatcher.java
+++ b/source/net/yacy/peers/Dispatcher.java
@@ -177,7 +177,7 @@ public class Dispatcher implements WorkflowTask<Transmission.Chunk> {
int refcount = 0;
// first select the container
- final long timeout = maxtime == Long.MAX_VALUE ? Long.MAX_VALUE : (maxtime < 0) ? Long.MAX_VALUE : System.currentTimeMillis() + maxtime;
+ final long timeout = maxtime == Integer.MAX_VALUE ? Long.MAX_VALUE : (maxtime < 0) ? Long.MAX_VALUE : System.currentTimeMillis() + maxtime;
while (
(containers.size() < maxContainerCount) &&
(refcount < maxReferenceCount) &&