You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2021/01/24 02:18:13 UTC
[lucene-solr] 06/16: @1282 Fix long to int for real.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
commit 5351ab312fbaa09596f525d27f4f7c84448614cd
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Jan 21 21:28:08 2021 -0600
@1282 Fix long to int for real.
---
solr/core/src/java/org/apache/solr/servlet/SolrQoSFilter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/java/org/apache/solr/servlet/SolrQoSFilter.java b/solr/core/src/java/org/apache/solr/servlet/SolrQoSFilter.java
index c8f120e..f6b6f13 100644
--- a/solr/core/src/java/org/apache/solr/servlet/SolrQoSFilter.java
+++ b/solr/core/src/java/org/apache/solr/servlet/SolrQoSFilter.java
@@ -87,7 +87,7 @@ public class SolrQoSFilter extends QoSFilter {
if (log.isDebugEnabled()) log.debug("set max concurrent requests to orig value {}", _origMaxRequests);
updateMaxRequests(_origMaxRequests, sLoad, ourLoad);
} else {
- updateMaxRequests(Math.min(_origMaxRequests, (int) Math.round(getMaxRequests() * 3)), sLoad, ourLoad);
+ updateMaxRequests(Math.min(_origMaxRequests, getMaxRequests() * 3), sLoad, ourLoad);
}
} else {
if (ourLoad > 0.90 && sLoad > 1.5) {
@@ -102,7 +102,7 @@ public class SolrQoSFilter extends QoSFilter {
if (log.isDebugEnabled()) log.debug("set max concurrent requests to orig value {}", _origMaxRequests);
updateMaxRequests(_origMaxRequests, sLoad, ourLoad);
} else {
- updateMaxRequests(Math.min(_origMaxRequests, (int) Math.round(getMaxRequests() * 3)), sLoad, ourLoad);
+ updateMaxRequests(Math.min(_origMaxRequests, getMaxRequests() * 3), sLoad, ourLoad);
}
}