From: Jérôme Benoit Date: Fri, 29 Jan 2021 07:42:50 +0000 (+0100) Subject: Fix Wrk default options. X-Git-Tag: v1.0.1-0~105^2~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=efa0d4320f8c6941d0b257318d0ca752b3c964fc;p=e-mobility-charging-stations-simulator.git Fix Wrk default options. Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerFactory.ts b/src/worker/WorkerFactory.ts index fcfe4f80..1bc6786d 100644 --- a/src/worker/WorkerFactory.ts +++ b/src/worker/WorkerFactory.ts @@ -23,15 +23,15 @@ export default class WorkerFactory { return new WorkerSet(workerScript, options.elementsPerWorker); case WorkerProcessType.STATIC_POOL: if (Utils.isUndefined(options.poolMaxSize)) { - options.elementsPerWorker = 16; + options.poolMaxSize = 16; } return new WorkerStaticPool(workerScript, options.poolMaxSize); case WorkerProcessType.DYNAMIC_POOL: if (Utils.isUndefined(options.poolMinSize)) { - options.elementsPerWorker = 4; + options.poolMinSize = 4; } if (Utils.isUndefined(options.poolMaxSize)) { - options.elementsPerWorker = 16; + options.poolMaxSize = 16; } return new WorkerDynamicPool(workerScript, options.poolMinSize, options.poolMaxSize); default: