diff options
author | 2018-02-26 17:19:27 -0800 | |
---|---|---|
committer | 2018-02-26 17:19:27 -0800 | |
commit | dca52e515c428f97d8c49c8eaad00e001b730a7d (patch) | |
tree | cfd6f1444974df7ce5b67d32380d9217c4b68f22 /src/core/lib/gpr/cpu_posix.cc | |
parent | 0dc7c5996ce5091a96632919a3e3befe351b44d0 (diff) |
Remain consitant with #14493
Diffstat (limited to 'src/core/lib/gpr/cpu_posix.cc')
-rw-r--r-- | src/core/lib/gpr/cpu_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/gpr/cpu_posix.cc b/src/core/lib/gpr/cpu_posix.cc index 7a77f7ab64..915fd4976c 100644 --- a/src/core/lib/gpr/cpu_posix.cc +++ b/src/core/lib/gpr/cpu_posix.cc @@ -37,7 +37,7 @@ static long ncpus = 0; static pthread_key_t thread_id_key; static void init_ncpus() { - ncpus = sysconf(_SC_NPROCESSORS_ONLN); + ncpus = sysconf(_SC_NPROCESSORS_CONF); if (ncpus < 1 || ncpus > INT32_MAX) { gpr_log(GPR_ERROR, "Cannot determine number of CPUs: assuming 1"); ncpus = 1; |