aboutsummaryrefslogtreecommitdiffstats
path: root/ext/etc/etc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/etc/etc.c')
-rw-r--r--ext/etc/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index b25cb7b8e0..694ef5e17f 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -934,7 +934,7 @@ etc_nprocessors_affin(void)
* So, we use hardcode number for a workaround. Current linux kernel
* (Linux 3.17) support 8192 cpus at maximum. Then 16384 must be enough.
*/
- for (n=64; n < 16384; n *= 2) {
+ for (n=64; n <= 16384; n *= 2) {
size = CPU_ALLOC_SIZE(n);
if (size >= 1024) {
cpuset = xcalloc(1, size);