typo fixes

This commit is contained in:
Jonathan Shook 2023-12-20 17:16:26 -06:00
parent 31dd7adf9b
commit 0431c4be6e
3 changed files with 7 additions and 7 deletions

View File

@ -23,8 +23,8 @@ import io.nosqlbench.engine.core.lifecycle.scenario.container.NBCommandParams;
* should be reduced down to the minimum set needed.
*/
public record RCurveConfig(
double maxrate,
int maxstep,
double max_rate,
int max_step,
double min_sample_seconds
) {
public RCurveConfig(NBCommandParams params) {
@ -36,7 +36,7 @@ public record RCurveConfig(
}
double rateForStep(int step) {
return ((double)step/(double) maxstep)*maxrate;
return ((double)step/(double) max_step)* max_rate;
}
}

View File

@ -47,7 +47,7 @@ public class RCurvePlanner extends SimFramePlanner<RCurveConfig, RCurveFramePara
}
public RCurveFrameParams initialStep() {
return new RCurveFrameParams(config.rateForStep(1), 1,config.maxstep(),"INITIAL");
return new RCurveFrameParams(config.rateForStep(1), 1,config.max_step(),"INITIAL");
}
/**
@ -64,8 +64,8 @@ public class RCurvePlanner extends SimFramePlanner<RCurveConfig, RCurveFramePara
public RCurveFrameParams nextStep(JournalView<RCurveFrameParams> journal) {
SimFrame<RCurveFrameParams> last = journal.last();
int nextStep = last.params().step() +1;
if (nextStep<=config.maxstep()) {
return new RCurveFrameParams(config.rateForStep(nextStep),nextStep,config.maxstep(),"Advancing to step " + nextStep);
if (nextStep<=config.max_step()) {
return new RCurveFrameParams(config.rateForStep(nextStep),nextStep,config.max_step(),"Advancing to step " + nextStep);
} else {
return null;
}

View File

@ -21,7 +21,7 @@ bindings:
# create a simple 2-d vector from a step function over the unit interval
# of 10 maxstep (the maximum number of characters per digit)
# of 10 max_step (the maximum number of characters per digit)
v2d: DoubleVectors('0-2*2')
# use Stringify() to visualize the value of numeric array types