refactor: align set information namespace
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Jun 2023 11:52:34 +0000 (13:52 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 11 Jun 2023 11:52:34 +0000 (13:52 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/WorkerSet.ts
src/worker/WorkerTypes.ts

index 1938ae580f03003352e1aeeeb10cdeea1565bf28..1812d06d94455233b7573aad8d584ba1e3eccb8e 100644 (file)
@@ -43,7 +43,7 @@ export class WorkerSet extends WorkerAbstract<WorkerData> {
   get info(): SetInfo {
     return {
       size: this.size,
-      runningElements: [...this.workerSet].reduce(
+      elementsExecuting: [...this.workerSet].reduce(
         (accumulator, workerSetElement) => accumulator + workerSetElement.numberOfWorkerElements,
         0
       ),
index a6de3353cfbf74a3fd8f1a26055a7bfedaf3b9c4..99ce69cd88091b3c1321592e5b2fb9ee747d16e1 100644 (file)
@@ -10,7 +10,7 @@ export enum WorkerProcessType {
 
 export type SetInfo = {
   size: number;
-  runningElements: number;
+  elementsExecuting: number;
   elementsPerWorker: number;
 };