Author: kkolinko
Date: Fri Oct 30 01:14:22 2009
New Revision: 831177
URL: http://svn.apache.org/viewvc?rev=831177&view=rev
Log:
Followup for rev.830980 changes:
Add brackets for better clarity, as we had them before. No functional change.
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Processor.java
Modified:
tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Processor.java
URL:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Processor.java?rev=831177&r1=831176&r2=831177&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Processor.java
(original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11Processor.java Fri
Oct 30 01:14:22 2009
@@ -777,10 +777,10 @@
// When using an executor, these values may return non-positive values
int curThreads = endpoint.getCurrentThreadsBusy();
int maxThreads = endpoint.getMaxThreads();
- if (curThreads > 0 && maxThreads >0) {
+ if (curThreads > 0 && maxThreads > 0) {
// Only auto-disable keep-alive if the current thread usage % can
be
// calculated correctly
- if (curThreads*100/maxThreads > 75) {
+ if ((curThreads*100)/maxThreads > 75) {
keepAliveLeft = 1;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]