jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1860784 - /jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
Date Fri, 07 Jun 2019 17:43:58 GMT
Author: fschumacher
Date: Fri Jun  7 17:43:58 2019
New Revision: 1860784

URL: http://svn.apache.org/viewvc?rev=1860784&view=rev
Log:
Use direct comparison instead of subtraction, as latter is problematic when extreme values
are used.

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java?rev=1860784&r1=1860783&r2=1860784&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java Fri Jun  7 17:43:58
2019
@@ -220,8 +220,7 @@ public class JMeterThread implements Run
      */
     private void stopSchedulerIfNeeded() {
         long now = System.currentTimeMillis();
-        long delay = now - endTime;
-        if (delay >= 0) {
+        if (now >= endTime) {
             running = false;
             log.info("Stopping because end time detected by thread: {}", threadName);
         }



Mime
View raw message