From: Jérôme Benoit Date: Sun, 11 Jun 2023 11:52:34 +0000 (+0200) Subject: refactor: align set information namespace X-Git-Tag: v1.2.17~32 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=19bdf4ca58ec313de2404dc598553a328b425722;p=e-mobility-charging-stations-simulator.git refactor: align set information namespace Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index 1938ae58..1812d06d 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -43,7 +43,7 @@ export class WorkerSet extends WorkerAbstract { get info(): SetInfo { return { size: this.size, - runningElements: [...this.workerSet].reduce( + elementsExecuting: [...this.workerSet].reduce( (accumulator, workerSetElement) => accumulator + workerSetElement.numberOfWorkerElements, 0 ), diff --git a/src/worker/WorkerTypes.ts b/src/worker/WorkerTypes.ts index a6de3353..99ce69cd 100644 --- a/src/worker/WorkerTypes.ts +++ b/src/worker/WorkerTypes.ts @@ -10,7 +10,7 @@ export enum WorkerProcessType { export type SetInfo = { size: number; - runningElements: number; + elementsExecuting: number; elementsPerWorker: number; };