/**
* Round weights.
*/
- private readonly roundWeights: number[]
+ private roundWeights: number[]
/**
* Default worker weight.
*/
return true
}
+ /** @inheritDoc */
+ public setOptions (opts: WorkerChoiceStrategyOptions): void {
+ super.setOptions(opts)
+ this.roundWeights = this.getRoundWeights()
+ }
+
private computeDefaultWorkerWeight (): number {
let cpusCycleTimeWeight = 0
for (const cpu of cpus()) {