Author: doogie
Date: Wed Mar 24 03:20:29 2010
New Revision: 926919
URL:
http://svn.apache.org/viewvc?rev=926919&view=revLog:
Save the loadTimeNanos value.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java?rev=926919&r1=926918&r2=926919&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/concurrent/ExecutionPool.java Wed Mar 24 03:20:29 2010
@@ -117,9 +117,11 @@ public final class ExecutionPool {
public static abstract class Pulse implements Delayed, Runnable {
protected final long expireTimeNanos;
+ protected final long loadTimeNanos;
protected Pulse(long delayNanos) {
- expireTimeNanos = System.nanoTime() + delayNanos;
+ loadTimeNanos = System.nanoTime();
+ expireTimeNanos = loadTimeNanos + delayNanos;
}
public final long getDelay(TimeUnit unit) {