[jboss-cvs] JBossAS SVN: r77495 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 26 12:10:33 EDT 2008
Author: pferraro
Date: 2008-08-26 12:10:33 -0400 (Tue, 26 Aug 2008)
New Revision: 77495
Modified:
trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/DeterministicLoadState.java
Log:
Use double for seconds to allow fractional time intervals.
Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/DeterministicLoadState.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/DeterministicLoadState.java 2008-08-26 15:54:11 UTC (rev 77494)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/modcluster/load/metric/impl/DeterministicLoadState.java 2008-08-26 16:10:33 UTC (rev 77495)
@@ -40,7 +40,7 @@
double previousLoad = this.currentLoad.getAndSet(new Double(currentLoad)).doubleValue();
- long seconds = (currentTime - previousTime) / 1000;
+ double seconds = (currentTime - previousTime) / 1000d;
// Normalize by time interval (in seconds)
return (currentLoad - previousLoad) / seconds;
More information about the jboss-cvs-commits
mailing list