View | Details | Raw Unified | Return to bug 65031
Collapse All | Expand All

(-)a/src/core/src/main/java/org/apache/jmeter/threads/ThreadGroup.java (-1 / +1 lines)
Lines 228-234 public class ThreadGroup extends AbstractThreadGroup { Link Here
228
            final JMeterContext context = JMeterContextService.getContext();
228
            final JMeterContext context = JMeterContextService.getContext();
229
            long lastThreadStartInMillis = 0;
229
            long lastThreadStartInMillis = 0;
230
            int delayForNextThreadInMillis = 0;
230
            int delayForNextThreadInMillis = 0;
231
            final int perThreadDelayInMillis = Math.round((float) rampUpPeriodInSeconds * 1000 / numThreads);
231
            final int perThreadDelayInMillis = Math.round((float) rampUpPeriodInSeconds * 1000 / Math.max(numThreads - 1, 1));
232
            for (int threadNum = 0; running && threadNum < numThreads; threadNum++) {
232
            for (int threadNum = 0; running && threadNum < numThreads; threadNum++) {
233
                long nowInMillis = System.currentTimeMillis();
233
                long nowInMillis = System.currentTimeMillis();
234
                if(threadNum > 0) {
234
                if(threadNum > 0) {

Return to bug 65031