mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Fixed useless comparison between int parameter and Long.MAX_VALUE
This commit is contained in:
parent
534f09e92b
commit
876bcd2f54
|
@ -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) &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user