HomeFreeBSD

net/cjdns: fix build on powerpc64*

Description

net/cjdns: fix build on powerpc64*

On powerpc64 and powerpc64le systems, os.cpus(), gets defined to []:

cpus = os.cpus()

It has type object:

typeof cpus

'object'

This causes jobs to be 0:

Math.floor((typeof cpus === 'undefined' ? 1 : cpus.length) * 1.25);

0

Change it so that instead of comparing type to undefined, we compare to 0:

Math.floor((os.cpus() == 0 ? 1 : cpus.length) * 1.25);

1

Details

Provenance
pkubajAuthored on Oct 26 2021, 6:46 PM
Parents
R11:4bda7fe9105d: misc/timetrace: Update to 0.14.1
Branches
Unknown
Tags
Unknown