File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
- diff --git src/core/lib/gpr/linux/cpu.cc b/src/core/lib/gpr/linux/cpu.cc
2
- index 670ca6551c..043021dc4a 100644
3
- --- src/core/lib/gpr/linux/cpu.cc
4
- +++ src/core/lib/gpr/linux/cpu.cc
1
+ diff --git src/core/util/linux/cpu.cc src/core/util/linux/cpu.cc
2
+ --- src/core/util/linux/cpu.cc
3
+ +++ src/core/util/linux/cpu.cc
5
4
@@ -24,6 +24,7 @@
6
5
7
6
#ifdef GPR_CPU_LINUX
@@ -10,7 +9,7 @@ index 670ca6551c..043021dc4a 100644
10
9
#include <errno.h>
11
10
#include <sched.h>
12
11
#include <string.h>
13
- @@ -49 ,7 +50 ,17 @@ static void init_num_cpus() {
12
+ @@ -50 ,7 +51 ,17 @@ static void init_num_cpus() {
14
13
#endif
15
14
// This must be signed. sysconf returns -1 when the number cannot be
16
15
// determined
@@ -27,5 +26,5 @@ index 670ca6551c..043021dc4a 100644
27
26
+ ncpus = static_cast<int>(sysconf(_SC_NPROCESSORS_CONF));
28
27
+ }
29
28
if (ncpus < 1) {
30
- gpr_log(GPR_ERROR, "Cannot determine number of CPUs: assuming 1") ;
29
+ LOG(ERROR) << "Cannot determine number of CPUs: assuming 1";
31
30
ncpus = 1;
You can’t perform that action at this time.
0 commit comments