incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1242513 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java
Date Thu, 09 Feb 2012 20:40:58 GMT
Author: justin
Date: Thu Feb  9 20:40:57 2012
New Revision: 1242513

URL: http://svn.apache.org/viewvc?rev=1242513&view=rev
Log:
SLING-2413 - should return a non-zero mean when n > 0, not when n > 1

Modified:
    sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java

Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java?rev=1242513&r1=1242512&r2=1242513&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java
(original)
+++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/RequestProcessorMBeanImpl.java
Thu Feb  9 20:40:57 2012
@@ -86,7 +86,7 @@ class RequestProcessorMBeanImpl extends 
     }
 
     public synchronized double getMeanRequestDurationMsec() {
-        if (this.n > 1) {
+        if (this.n > 0) {
             return this.durationMsecSumX / this.n;
         } else {
             return 0;



Mime
View raw message