]> Sergey Matveev's repositories - public-inbox.git/commit
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)
commit5bddb0ece15079f9961949d48615b990081e0a95
treeebb1e18fb8b476c1f2b30e0284b2ab303dacd4ce
parenta715ce5da88e2263888a92335d794fab0aad91c0
v2writable: more ways to detect online CPU count

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).
lib/PublicInbox/V2Writable.pm