refactor: rename configuration elementStartDelay to elementAddDelay
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerDynamicPool.ts
index 817536f0237251b88af5c242fb0800914e4574d5..0bdb26194465384f060cf6c01ef858799b3dafe9 100644 (file)
@@ -56,8 +56,8 @@ export class WorkerDynamicPool extends WorkerAbstract<WorkerData> {
     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!)))
   }
 }