jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1364097 - /jmeter/trunk/src/core/org/apache/jmeter/threads/OnDemandThreadGroup.java
Date Sat, 21 Jul 2012 13:57:05 GMT
Author: pmouawad
Date: Sat Jul 21 13:57:04 2012
New Revision: 1364097

URL: http://svn.apache.org/viewvc?rev=1364097&view=rev
Log:
Bug 53418 - New OnDemandThreadGroup that creates threads when needed instead of creating them
on Test startup
simplified and cleaned


Bugzilla Id: 53418

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/OnDemandThreadGroup.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/OnDemandThreadGroup.java?rev=1364097&r1=1364096&r2=1364097&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/OnDemandThreadGroup.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/OnDemandThreadGroup.java Sat Jul 21 13:57:04
2012
@@ -89,12 +89,10 @@ public class OnDemandThreadGroup extends
                     delayBy(getDelay() * 1000, "start");
                 } else {
                     long start = getStartTime();
-                    if (start < now) {
-                        start = now; // Force a sensible start time
-                        // No delay
-                    } else {
+                    if (start >= now) {
                         delayBy(start-now, "start");
-                    }
+                    } 
+                    // else start immediately
                 }
             }
             for (int i = 0; i < jMeterThreads.length; i++) {



Mime
View raw message