Author: sebb
Date: Wed Mar 7 00:43:34 2012
New Revision: 1297814
URL: http://svn.apache.org/viewvc?rev=1297814&view=rev
Log:
Bug 43450 - Listeners/Savers assume SampleResult count is always 1
Fix SamplingStatCalculator
Modified:
jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java
Modified:
jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java
URL:
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java?rev=1297814&r1=1297813&r2=1297814&view=diff
==============================================================================
---
jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java
(original)
+++
jmeter/trunk/src/core/org/apache/jmeter/visualizers/SamplingStatCalculator.java
Wed Mar 7 00:43:34 2012
@@ -151,9 +151,7 @@ public class SamplingStatCalculator {
calculator.addBytes(res.getBytes());
setStartTime(res);
eCount = getCurrentSample().getErrorCount();
- if (!res.isSuccessful()) {
- eCount++;
- }
+ eCount += res.getErrorCount();
endTime = getEndTime(res);
long howLongRunning = endTime - firstTime;
throughput = ((double) calculator.getCount() / (double)
howLongRunning) * 1000.0;