jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1760138 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java
Date Sat, 10 Sep 2016 09:07:59 GMT
Author: pmouawad
Date: Sat Sep 10 09:07:59 2016
New Revision: 1760138

URL: http://svn.apache.org/viewvc?rev=1760138&view=rev
Log:
Bug 60090 Report / Dashboard : Empty Transaction Controller should not count in metrics
Bugzilla Id: 60090

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java?rev=1760138&r1=1760137&r2=1760138&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/ApdexSummaryConsumer.java Sat
Sep 10 09:07:59 2016
@@ -98,7 +98,9 @@ public class ApdexSummaryConsumer extend
      */
     @Override
     protected void updateData(SummaryInfo info, Sample sample) {
-
+        if(sample.isEmptyController()) {
+            return;
+        }
         // Initialize overall data if they don't exist
         SummaryInfo overallInfo = getOverallInfo();
         ApdexSummaryData overallData = overallInfo.getData();
@@ -123,7 +125,7 @@ public class ApdexSummaryConsumer extend
         overallData.incTotalCount();
 
         // Process only succeeded samples
-        if (sample.getSuccess() && !sample.isEmptyController()) {
+        if (sample.getSuccess()) {
             long elapsedTime = sample.getElapsedTime();
 
             // Increment the counters depending on the elapsed time.



Mime
View raw message