X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerConstants.ts;h=dcbe2ca43caa3faec645c6e693dc04f1cb8b93f2;hb=d9dc62924217cf334019aa04322a18e2e032d659;hp=99e29fcb6bd57c1bc0806b9778a7502933707c86;hpb=60d1f5b09771029bd3459a620e883c58dab0d4f5;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 99e29fcb..dcbe2ca4 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -8,10 +8,12 @@ export class WorkerConstants { public static readonly DEFAULT_ELEMENT_START_DELAY = 0; public static readonly DEFAULT_WORKER_START_DELAY = 500; public static readonly POOL_MAX_INACTIVE_TIME = 60000; - public static readonly DEFAULT_POOL_MIN_SIZE = availableParallelism() / 2; - public static readonly DEFAULT_POOL_MAX_SIZE = availableParallelism(); + public static readonly DEFAULT_POOL_MIN_SIZE = Math.floor(availableParallelism() / 2); + public static readonly DEFAULT_POOL_MAX_SIZE = Math.round(availableParallelism() * 1.5); public static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; + public static readonly version = '1.0.1'; + private constructor() { // This is intentional }