From e2a6e6bff9ef08c66206f6d0d0aef7a7c0fa7168 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Wed, 18 Sep 2024 12:41:42 +0200 Subject: [PATCH] use online processors, as suggested by @PizieDust --- src/vmm_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vmm_stubs.c b/src/vmm_stubs.c index a9811ab..d4d4189 100644 --- a/src/vmm_stubs.c +++ b/src/vmm_stubs.c @@ -11,7 +11,7 @@ CAMLprim value vmm_cpu_count (value unit) { CAMLparam1(unit); int r; - r = (int)sysconf(_SC_NPROCESSORS_CONF); + r = (int)sysconf(_SC_NPROCESSORS_ONLN); CAMLreturn(Val_int(r)); }