nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit 827f876c7c634406f257633eee480fc489ce38a0
parent 81a2dcf7d22dbfd8e023d389578823947f058484
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 11 Feb 2024 14:05:36 -0800

cores: just set to 2 on unknown platforms

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/cpu.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cpu.h b/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;