const getDefaultWorkerWeight = (): number => {
const currentCpus = cpus()
let estCpuSpeed: number | undefined
const getDefaultWorkerWeight = (): number => {
const currentCpus = cpus()
let estCpuSpeed: number | undefined
if (currentCpus.every(cpu => cpu.speed == null || cpu.speed === 0)) {
estCpuSpeed = estimatedCpuSpeed()
}
let cpusCycleTimeWeight = 0
for (const cpu of currentCpus) {
if (currentCpus.every(cpu => cpu.speed == null || cpu.speed === 0)) {
estCpuSpeed = estimatedCpuSpeed()
}
let cpusCycleTimeWeight = 0
for (const cpu of currentCpus) {