jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783505 - /jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
Date Sat, 18 Feb 2017 11:07:08 GMT
Author: fschumacher
Date: Sat Feb 18 11:07:08 2017
New Revision: 1783505

URL: http://svn.apache.org/viewvc?rev=1783505&view=rev
Log:
Cast one of the operands to double, to make it clear, that we are using the result as double.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java?rev=1783505&r1=1783504&r2=1783505&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/processor/graph/impl/ResponseTimeDistributionGraphConsumer.java
Sat Feb 18 11:07:08 2017
@@ -72,8 +72,7 @@ public class ResponseTimeDistributionGra
             @Override
             public Double select(Sample sample) {
                 long elapsed = sample.getElapsedTime();
-                return Double.valueOf(elapsed - elapsed % granularity);
-
+                return Double.valueOf((double) elapsed - elapsed % granularity);
             }
         };
     }



Mime
View raw message