jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1220568 - /jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java
Date Mon, 19 Dec 2011 00:28:19 GMT
Author: sebb
Date: Mon Dec 19 00:28:19 2011
New Revision: 1220568

URL: http://svn.apache.org/viewvc?rev=1220568&view=rev
Log:
Trivial performance tweak

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java?rev=1220568&r1=1220567&r2=1220568&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/util/Calculator.java Mon Dec 19 00:28:19 2011
@@ -125,8 +125,9 @@ public class Calculator {
         errors+=res.getErrorCount(); // account for multiple samples
         if (startTime == 0){ // not yet intialised
             startTime=res.getStartTime();
-        } 
-        startTime = Math.min(startTime, res.getStartTime());
+        } else {
+            startTime = Math.min(startTime, res.getStartTime());
+        }
         elapsedTime = Math.max(elapsedTime, res.getEndTime()-startTime);
     }
 



Mime
View raw message