Skip to content

Commit

Permalink
Merge pull request #45 from GuildMasterInfinite/master
Browse files Browse the repository at this point in the history
Use PROCESSORS_CONF instead of PROCESSORS_ONLN to fix ARM bug
  • Loading branch information
seanmonstar committed Jun 22, 2017
2 parents 0f9e8ea + 9d7b5bd commit a0a5798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ fn get_num_cpus() -> usize {
target_os = "fuchsia")
)]
fn get_num_cpus() -> usize {
let cpus = unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) };
let cpus = unsafe { libc::sysconf(libc::_SC_NPROCESSORS_CONF) };
if cpus < 1 {
1
} else {
Expand Down

0 comments on commit a0a5798

Please sign in to comment.