jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1774966 - /jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java
Date Sun, 18 Dec 2016 21:27:39 GMT
Author: pmouawad
Date: Sun Dec 18 21:27:39 2016
New Revision: 1774966

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

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java?rev=1774966&r1=1774965&r2=1774966&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/timers/PoissonRandomTimer.java Sun Dec 18
21:27:39 2016
@@ -380,7 +380,7 @@ public class PoissonRandomTimer extends
             throw new IllegalArgumentException();
         }
         else if (n > 254) {
-            double x = n + 1;
+            double x = n + 1d;
             return (x - 0.5)*Math.log(x) - x + 0.5*Math.log(2*Math.PI) + 1.0/(12.0*x);
         }
         else {



Mime
View raw message