jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297812 - /jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
Date Wed, 07 Mar 2012 00:38:01 GMT
Author: sebb
Date: Wed Mar  7 00:38:00 2012
New Revision: 1297812

URL: http://svn.apache.org/viewvc?rev=1297812&view=rev
Log:
Simplify

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java?rev=1297812&r1=1297811&r2=1297812&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/visualizers/RunningSample.java Wed Mar  7 00:38:00
2012
@@ -203,9 +203,9 @@ public class RunningSample {
      */
     public void addSample(SampleResult res) {
         long aTimeInMillis = res.getTime();
-        boolean aSuccessFlag = res.isSuccessful();
         
         counter+=res.getSampleCount();
+        errorCount += res.getErrorCount();
 
         long startTime = res.getStartTime();
         long endTime = res.getEndTime();
@@ -229,9 +229,6 @@ public class RunningSample {
             min = aTimeInMillis;
         }
 
-        if (!aSuccessFlag) {
-            errorCount += res.getErrorCount();
-        }
     }
 
     /**



Mime
View raw message