jmeter-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1220572&view=rev
Log:
Bug 52357 - View results in Table does not allow for multiple result samples
Partial fix; ensure calculator is passed the sample count

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/TableVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/TableVisualizer.java?rev=1220572&r1=1220571&r2=1220572&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/TableVisualizer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/TableVisualizer.java Mon Dec
19 00:41:28 2011
@@ -166,7 +166,7 @@ public class TableVisualizer extends Abs
             }
         }
         synchronized (calc) {
-            calc.addValue(res.getTime());
+            calc.addSample(res);
             int count = calc.getCount();
             Sample newS = new Sample(res.getSampleLabel(), res.getTime(), 0, 0, 0, 0, 0,
0,
                     res.isSuccessful(), count, res.getEndTime(),res.getBytes(),

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=1220572&r1=1220571&r2=1220572&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:41:28 2011
@@ -73,7 +73,9 @@ public class Calculator {
      * @param newValue
      * 
      * @see #addValue(long, int)
+     * @deprecated Use {@link #addSample(SampleResult)} instead
      */
+    @Deprecated
     public void addValue(long newValue) {
         addValue(newValue, 1);
     }



Mime
View raw message