]> Sergey Matveev's repositories - public-inbox.git/commitdiff
v2writable: more ways to detect online CPU count
authorEric Wong <e@yhbt.net>
Sun, 2 Feb 2020 06:52:22 +0000 (06:52 +0000)
committerEric Wong <e@yhbt.net>
Sun, 2 Feb 2020 17:29:59 +0000 (17:29 +0000)
OpenBSD and FreeBSD support `getconf NPROCESSORS_ONLN` (no
leading underscore).  They may also have GNU nproc installed as
"gnproc".

We may also encounter Linux systems w/o GNU coreutils, but able
to use `getconf _NPROCESSORS_ONLN` (with leading underscore).


No differences found