commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1102555 - /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
Date Fri, 13 May 2011 03:21:51 GMT
Author: psteitz
Date: Fri May 13 03:21:51 2011
New Revision: 1102555

URL: http://svn.apache.org/viewvc?rev=1102555&view=rev
Log:
Ensure floating point divide.

Modified:
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java?rev=1102555&r1=1102554&r2=1102555&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
Fri May 13 03:21:51 2011
@@ -176,7 +176,7 @@ public abstract class ClientThread imple
                 success = false;
             } finally {
                 try {
-                    responseStats.addValue((System.nanoTime() - start)/1000);
+                    responseStats.addValue((System.nanoTime() - start)/1000f);
                     successStats.addValue(success ? 1 : 0);
                     onTimeStats.addValue(onTime ? 1 : 0);
                     cleanUp();



Mime
View raw message