mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
typo fixes
This commit is contained in:
parent
31dd7adf9b
commit
0431c4be6e
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user