fix: fix ELU computation
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Jun 2023 20:07:13 +0000 (22:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 6 Jun 2023 20:07:13 +0000 (22:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts

index b86a3b13a6b538efb4024c0ebe8e49df22e4a1a8..b93915c48e31111b93eb2199ce50fd26dae222b6 100644 (file)
@@ -536,7 +536,7 @@ export abstract class AbstractPool<
           idle: workerTasksUsage.elu.idle + message.elu.idle,
           active: workerTasksUsage.elu.active + message.elu.active,
           utilization:
-            workerTasksUsage.elu.utilization + message.elu.utilization
+            (workerTasksUsage.elu.utilization + message.elu.utilization) / 2
         }
       } else if (message.elu != null) {
         workerTasksUsage.elu = message.elu