options
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
- private readonly roundWeights: number[]
+ private roundWeights: number[]
/**
* Default worker weight.
*/
/**
* Default worker weight.
*/
+ /** @inheritDoc */
+ public setOptions (opts: WorkerChoiceStrategyOptions): void {
+ super.setOptions(opts)
+ this.roundWeights = this.getRoundWeights()
+ }
+
private computeDefaultWorkerWeight (): number {
let cpusCycleTimeWeight = 0
for (const cpu of cpus()) {
private computeDefaultWorkerWeight (): number {
let cpusCycleTimeWeight = 0
for (const cpu of cpus()) {