From 25e91b386c9c08cd0941bdda22bed7aedb7d4056 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 11 Feb 2024 14:05:36 -0800 Subject: [PATCH] nostrdb: cores: just set to 2 on unknown platforms Signed-off-by: William Casarin --- nostrdb/src/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/src/cpu.h b/nostrdb/src/cpu.h index a51ff7b8..bb010aa0 100644 --- a/nostrdb/src/cpu.h +++ b/nostrdb/src/cpu.h @@ -27,7 +27,7 @@ static inline int get_cpu_cores() { size_t size = sizeof(num_cores); sysctlbyname("hw.physicalcpu", &num_cores, &size, NULL, 0); #else - num_cores = -1; // Unsupported platform + num_cores = 2; // Unsupported platform #endif return num_cores;