X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerFixedPool.ts;fp=src%2Fworker%2FWorkerFixedPool.ts;h=4eafa1d59933395ee0fb5f2c2dddc9f5404aeb00;hb=da47bc294fb5e439e96faaf9441ba0cd23e64f9c;hp=836690413516bf9c241cbbd7d1d352992c04eec8;hpb=cf86bef110e64ee5471f588dbb28ffea7dc01a35;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerFixedPool.ts b/src/worker/WorkerFixedPool.ts index 83669041..4eafa1d5 100644 --- a/src/worker/WorkerFixedPool.ts +++ b/src/worker/WorkerFixedPool.ts @@ -55,8 +55,8 @@ export class WorkerFixedPool extends WorkerAbstract { await this.pool.execute(elementData) // Start element sequentially to optimize memory at startup // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - this.workerOptions.elementStartDelay! > 0 && + this.workerOptions.elementAddDelay! > 0 && // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - (await sleep(randomizeDelay(this.workerOptions.elementStartDelay!))) + (await sleep(randomizeDelay(this.workerOptions.elementAddDelay!))) } }