commit 25e91b386c9c08cd0941bdda22bed7aedb7d4056
parent 560e9e53cdd2bffdc4ecfee2ebeb0cc9dc9910f4
Author: William Casarin <jb55@jb55.com>
Date: Sun, 11 Feb 2024 14:05:36 -0800
nostrdb: cores: just set to 2 on unknown platforms
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;