fix: fix fair share algorithm implementation
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 6 May 2023 18:25:18 +0000 (20:25 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 6 May 2023 18:25:18 +0000 (20:25 +0200)
commita4958de2101f06e7096b83adbca82fcfd532a721
tree40745bb5135349e83dc8dbec85fa0e0869267b24
parent138d29a820e8a61d10ba03fe42c5d77596ef788c
fix: fix fair share algorithm implementation

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
src/pools/selection-strategies/abstract-worker-choice-strategy.ts
src/pools/selection-strategies/fair-share-worker-choice-strategy.ts
src/pools/selection-strategies/less-busy-worker-choice-strategy.ts
src/pools/selection-strategies/less-used-worker-choice-strategy.ts
src/pools/selection-strategies/selection-strategies-types.ts
src/pools/selection-strategies/worker-choice-strategy-context.ts
src/utils.ts
tests/pools/selection-strategies/selection-strategies.test.js