From 19bdf4ca58ec313de2404dc598553a328b425722 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 11 Jun 2023 13:52:34 +0200 Subject: [PATCH] refactor: align set information namespace MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/worker/WorkerSet.ts | 2 +- src/worker/WorkerTypes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }; -- 2.34.1