refactor: rename configuration elementStartDelay to elementAddDelay
[e-mobility-charging-stations-simulator.git] / src / worker / WorkerSet.ts
index b4a1ec2048f8799bcc12ad59a0f21c70fd3bd5a8..1ad551efb0553e47458e2766734fdfd1cbc0ef12 100644 (file)
@@ -115,9 +115,9 @@ export class WorkerSet extends WorkerAbstract<WorkerData> {
     ++workerSetElement.numberOfWorkerElements
     // Add element sequentially to optimize memory at startup
     // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
-    if (this.workerOptions.elementStartDelay! > 0) {
+    if (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!))
     }
   }