mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Merge branch 'main' into mwolters/sqlite
This commit is contained in:
@@ -27,6 +27,7 @@ import java.util.Optional;
|
|||||||
import java.util.concurrent.locks.LockSupport;
|
import java.util.concurrent.locks.LockSupport;
|
||||||
|
|
||||||
public class SimFrameUtils {
|
public class SimFrameUtils {
|
||||||
|
public static final String SIM_CYCLES = "sim_cycles";
|
||||||
|
|
||||||
public static void awaitActivity(Activity flywheel) {
|
public static void awaitActivity(Activity flywheel) {
|
||||||
// await flywheel actually spinning, or timeout with error
|
// await flywheel actually spinning, or timeout with error
|
||||||
@@ -54,6 +55,8 @@ public class SimFrameUtils {
|
|||||||
// Start the flywheel at an "idle" speed, even if the user hasn't set it
|
// Start the flywheel at an "idle" speed, even if the user hasn't set it
|
||||||
flywheel.onEvent(new ParamChange<>(new CycleRateSpec(100.0d, 1.1d, SimRateSpec.Verb.restart)));
|
flywheel.onEvent(new ParamChange<>(new CycleRateSpec(100.0d, 1.1d, SimRateSpec.Verb.restart)));
|
||||||
flywheel.getActivityDef().setEndCycle(Long.MAX_VALUE);
|
flywheel.getActivityDef().setEndCycle(Long.MAX_VALUE);
|
||||||
|
flywheel.getActivityDef().getParams().set(SIM_CYCLES, Long.MAX_VALUE);
|
||||||
|
|
||||||
return flywheel;
|
return flywheel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user