jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1429414 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
Date Sat, 05 Jan 2013 22:55:36 GMT
Author: sebb
Date: Sat Jan  5 22:55:36 2013
New Revision: 1429414

URL: http://svn.apache.org/viewvc?rev=1429414&view=rev
Log:
Explicit casting to Long

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java?rev=1429414&r1=1429413&r2=1429414&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/RespTimeGraphVisualizer.java
Sat Jan  5 22:55:36 2013
@@ -235,17 +235,18 @@ public class RespTimeGraphVisualizer ext
                         }
                         // List of value by sampler
                         Map<Long, Long> subList = pList.get(sampleLabel);
+                        final Long startTimeIntervalLong = Long.valueOf(startTimeInterval);
                         if (subList != null) {
                             long respTime = sampleResult.getTime();
-                            Long value = subList.get(startTimeInterval);
+                            Long value = subList.get(startTimeIntervalLong);
                             if (value!=null) {
                                 respTime = (value.longValue() + respTime) / 2;
                             }
-                            subList.put(startTimeInterval, Long.valueOf(respTime));
+                            subList.put(startTimeIntervalLong, Long.valueOf(respTime));
                         } else {
                             // We want to retain insertion order, so LinkedHashMap is necessary
                             Map<Long, Long> newSubList = new LinkedHashMap<Long,
Long>();
-                            newSubList.put(startTimeInterval, Long.valueOf(sampleResult.getTime()));
+                            newSubList.put(startTimeIntervalLong, Long.valueOf(sampleResult.getTime()));
                             pList.put(sampleLabel, newSubList);
                         }
                     }
@@ -319,7 +320,7 @@ public class RespTimeGraphVisualizer ext
             int idx = 0;
             while (idx < durationTest) {
                 long keyShift = minStartTime + idx;
-                Long value = subList.get(keyShift);
+                Long value = subList.get(Long.valueOf(keyShift));
                 if (value != null) {
                     nanLast = value.doubleValue();
                     data[s][idx] = nanLast;



Mime
View raw message