jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1774965 - /jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
Date Sun, 18 Dec 2016 21:26:52 GMT
Author: pmouawad
Date: Sun Dec 18 21:26:52 2016
New Revision: 1774965

URL: http://svn.apache.org/viewvc?rev=1774965&view=rev
Log:
Fix conversion issue

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java?rev=1774965&r1=1774964&r2=1774965&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/AxisGraph.java Sun Dec 18 21:26:52
2016
@@ -401,7 +401,7 @@ public class AxisGraph extends JPanel {
 
             // Y Axis
             try {
-                BigDecimal round = new BigDecimal(max / 1000d);
+                BigDecimal round = BigDecimal.valueOf(max / 1000d);
                 round = round.setScale(0, BigDecimal.ROUND_UP);
                 double topValue = round.doubleValue() * 1000;
                 yaxis.setUserDefinedScale(0, 500);



Mime
View raw message