feat: add elementsPerWorker automatic calculation
[e-mobility-charging-stations-simulator.git] / src / utils / Configuration.ts
index c22fc33419289d5eb0bdf8be5715c87be7fa8b17..92ce46e359a039ef42080504ddb8c24f7225d37a 100644 (file)
@@ -288,7 +288,7 @@ export class Configuration {
     const defaultWorkerConfiguration: WorkerConfiguration = {
       processType: WorkerProcessType.workerSet,
       startDelay: WorkerConstants.DEFAULT_WORKER_START_DELAY,
-      elementsPerWorker: WorkerConstants.DEFAULT_ELEMENTS_PER_WORKER,
+      elementsPerWorker: 'auto',
       elementStartDelay: WorkerConstants.DEFAULT_ELEMENT_START_DELAY,
       poolMinSize: WorkerConstants.DEFAULT_POOL_MIN_SIZE,
       poolMaxSize: WorkerConstants.DEFAULT_POOL_MAX_SIZE,