fix: cut&paste typo
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Jul 2023 09:59:46 +0000 (11:59 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 3 Jul 2023 09:59:46 +0000 (11:59 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index 0069fb7fadc61c95196982365adfaf60561069fa..232b0cc17e702e95c12bb0b083e351af3f624161 100644 (file)
@@ -255,8 +255,8 @@ export abstract class AbstractPool<
       maxSize: this.maxSize,
       ...(this.workerChoiceStrategyContext.getTaskStatisticsRequirements()
         .runTime.aggregate &&
-        this.workerChoiceStrategyContext.getTaskStatisticsRequirements().runTime
-          .aggregate && { utilization: round(this.utilization) }),
+        this.workerChoiceStrategyContext.getTaskStatisticsRequirements()
+          .waitTime.aggregate && { utilization: round(this.utilization) }),
       workerNodes: this.workerNodes.length,
       idleWorkerNodes: this.workerNodes.reduce(
         (accumulator, workerNode) =>