Skip to content

Commit a0a5798

Browse files
authored
Merge pull request #45 from GuildMasterInfinite/master
Use PROCESSORS_CONF instead of PROCESSORS_ONLN to fix ARM bug
2 parents 0f9e8ea + 9d7b5bd commit a0a5798

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn get_num_cpus() -> usize {
273273
target_os = "fuchsia")
274274
)]
275275
fn get_num_cpus() -> usize {
276-
let cpus = unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) };
276+
let cpus = unsafe { libc::sysconf(libc::_SC_NPROCESSORS_CONF) };
277277
if cpus < 1 {
278278
1
279279
} else {

0 commit comments

Comments
 (0)