Skip to content
Permalink
Browse files

Fixed useless comparison between int parameter and Long.MAX_VALUE

  • Loading branch information...
luccioman committed Jul 8, 2018
1 parent 534f09e commit 876bcd2f5477d3a80069fd634cec6364e25181a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/net/yacy/peers/Dispatcher.java
@@ -177,7 +177,7 @@ public int transmissionSize() {
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) &&

0 comments on commit 876bcd2

Please sign in to comment.
You can’t perform that action at this time.