jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1221465 - in /jmeter/trunk: src/jorphan/org/apache/jorphan/math/StatCalculator.java xdocs/changes.xml
Date Tue, 20 Dec 2011 20:04:52 GMT
Author: sebb
Date: Tue Dec 20 20:04:51 2011
New Revision: 1221465

URL: http://svn.apache.org/viewvc?rev=1221465&view=rev
Log:
Bug 52376 - StatCalculator#addValue(T val, int sampleCount) should use long, not int

Modified:
    jmeter/trunk/src/jorphan/org/apache/jorphan/math/StatCalculator.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/jorphan/org/apache/jorphan/math/StatCalculator.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/jorphan/org/apache/jorphan/math/StatCalculator.java?rev=1221465&r1=1221464&r2=1221465&view=diff
==============================================================================
--- jmeter/trunk/src/jorphan/org/apache/jorphan/math/StatCalculator.java (original)
+++ jmeter/trunk/src/jorphan/org/apache/jorphan/math/StatCalculator.java Tue Dec 20 20:04:51
2011
@@ -95,7 +95,7 @@ public abstract class StatCalculator<T e
 
     public void addAll(StatCalculator<T> calc) {
         for(Entry<T, MutableLong> ent : calc.valuesMap.entrySet()) {
-            addValue(ent.getKey(), ent.getValue().intValue());
+            addValue(ent.getKey(), ent.getValue().longValue());
         }
     }
 
@@ -197,7 +197,7 @@ public abstract class StatCalculator<T e
 
     protected abstract T divide(T val, int n);
 
-    public void addValue(T val, int sampleCount) {
+    public void addValue(T val, long sampleCount) {
         count += sampleCount;
         double currentVal = val.doubleValue();
         sum += currentVal * sampleCount; 
@@ -215,10 +215,10 @@ public abstract class StatCalculator<T e
     }
 
     public void addValue(T val) {
-        addValue(val,1);
+        addValue(val, 1L);
     }
 
-    private void updateValueCount(T actualValue, int sampleCount) {
+    private void updateValueCount(T actualValue, long sampleCount) {
         MutableLong count = valuesMap.get(actualValue);
         if (count != null) {
             count.add(sampleCount);

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1221465&r1=1221464&r2=1221465&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Tue Dec 20 20:04:51 2011
@@ -155,6 +155,7 @@ This behaviour can be changed with prope
 <li>Bug 52224 - TestBeanHelper does not support NOT_UNDEFINED == Boolean.FALSE</li>
 <li>Bug 52279 - Switching to another language loses icons in Tree and logs error Can't
obtain GUI class from ...</li>
 <li>Bug 52280 - The menu item Options / Choose Language does not change all the displayed
text to the new language</li>
+<li>Bug 52376 - StatCalculator#addValue(T val, int sampleCount) should use long, not
int</li>
 </ul>
 
 <!-- =================== Improvements =================== -->



Mime
View raw message