diff --git a/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js b/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js index cdc1ac2b7..848beb8fa 100644 --- a/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js +++ b/packages/caliper-core/lib/worker/rate-control/fixedFeedbackRate.js @@ -47,7 +47,7 @@ class FixedFeedbackRateController extends RateInterface { const tpsPerClient = tps / this.numberOfWorkers; this.generalSleepTime = (tpsPerClient > 0) ? 1000 / tpsPerClient : 0; - this.backOffTime = this.options.sleep_time || 100; + this.backOffTime = this.options.sleepTime || 100; const transactionLoad = this.options.transactionLoad ? this.options.transactionLoad : 10; this.unfinishedPerWorker = (transactionLoad / this.numberOfWorkers); diff --git a/packages/caliper-core/lib/worker/rate-control/maxRate.js b/packages/caliper-core/lib/worker/rate-control/maxRate.js index 10f04db2e..db622e389 100644 --- a/packages/caliper-core/lib/worker/rate-control/maxRate.js +++ b/packages/caliper-core/lib/worker/rate-control/maxRate.js @@ -167,7 +167,7 @@ class MaxRate extends RateInterface { } /** - * Apply the client TPS + * Apply the worker TPS */ async applySleepInterval() { const sleepTime = 1000 / this.tpsSettings.current;