From: Jérôme Benoit Date: Sun, 9 Apr 2023 13:11:28 +0000 (+0200) Subject: fix: reference poolifier pool property X-Git-Tag: v1.2.4~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4597fdc580a3a20384ecef821fe781a1099d733f;p=e-mobility-charging-stations-simulator.git fix: reference poolifier pool property Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerDynamicPool.ts b/src/worker/WorkerDynamicPool.ts index 8a7e6e55..ff80bfcb 100644 --- a/src/worker/WorkerDynamicPool.ts +++ b/src/worker/WorkerDynamicPool.ts @@ -33,7 +33,7 @@ export class WorkerDynamicPool extends WorkerAbstract { } get size(): number { - return this.pool.workers.length; + return this.pool.workerNodes.length; } get maxElementsPerWorker(): number | undefined { diff --git a/src/worker/WorkerStaticPool.ts b/src/worker/WorkerStaticPool.ts index 8a717ad8..de1f5b29 100644 --- a/src/worker/WorkerStaticPool.ts +++ b/src/worker/WorkerStaticPool.ts @@ -32,7 +32,7 @@ export class WorkerStaticPool extends WorkerAbstract { } get size(): number { - return this.pool.workers.length; + return this.pool.workerNodes.length; } get maxElementsPerWorker(): number | undefined {