* @return estimated tick number when all threads with opened tasks are done waiting
*/
public long estimateAllowed(final long now) {
- return Math.max(now, nearestAllowed) + estimateIsolatedDelay(now);
+ return Math.max(now, nearestAllowed + estimateIsolatedDelay(now));
}
// State-altering public methods.