Simplify detection of cpu count

Authored by tbaumgart on Oct 13 2019, 11:17 AM.