We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f8143b + b43c838 commit c953171Copy full SHA for c953171
driver/others/memory.c
@@ -229,7 +229,7 @@ int get_num_procs(void) {
229
n=0;
230
#if !__GLIBC_PREREQ(2, 6)
231
for (i=0;i<nums;i++)
232
- if (CPU_ISSET(i,cpuset)) n++;
+ if (CPU_ISSET(i,&cpuset)) n++;
233
nums=n;
234
#else
235
nums = CPU_COUNT(sizeof(cpuset),&cpuset);
@@ -1772,7 +1772,7 @@ int get_num_procs(void) {
1772
1773
1774
1775
1776
1777
1778
0 commit comments