jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1854741 - /jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
Date Sun, 03 Mar 2019 20:56:13 GMT
Author: pmouawad
Date: Sun Mar  3 20:56:13 2019
New Revision: 1854741

URL: http://svn.apache.org/viewvc?rev=1854741&view=rev
Log:
Bug 58183 - Rampup may not be respected if thread take time to start leading to threads continuing
to start post ramp up time
Fix checkstyle error
Bugzilla Id: 58183

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java?rev=1854741&r1=1854740&r2=1854741&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/ThreadGroup.java Sun Mar  3 20:56:13 2019
@@ -601,7 +601,7 @@ public class ThreadGroup extends Abstrac
                     if (threadNumber > 0) {
                         long elapsedInMillis = System.currentTimeMillis() - startTimeInMillis;

                         final int perThreadDelayInMillis = 
-                                Math.round(((rampUpOriginInMillis - elapsedInMillis) / (float)
(numThreads - threadNumber)));
+                                Math.round((rampUpOriginInMillis - elapsedInMillis) / (float)
(numThreads - threadNumber));
                         pause(Math.max(0, perThreadDelayInMillis)); // ramp-up delay (except
first)
                     }
                     if (usingScheduler && System.currentTimeMillis() > endtime)
{



Mime
View raw message