From: Jérôme Benoit Date: Tue, 6 Jun 2023 20:07:13 +0000 (+0200) Subject: fix: fix ELU computation X-Git-Tag: v2.5.4~14 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=744946cb7baf699b204014e3af4d371c59227fbe;p=poolifier.git fix: fix ELU computation Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index b86a3b13..b93915c4 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -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