commit a2dea7c49105540eb9d6101149c79bdb30ed1e8f
parent d5242aad49c093bcb44eb9be304e355a4f5796bd
Author: William Casarin <jb55@jb55.com>
Date: Fri, 1 Dec 2023 13:56:24 -0800
rename get_physical_cores to get_cpu_cores
less wrong
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpu.h b/cpu.h
@@ -10,7 +10,7 @@
#error "Unsupported platform"
#endif
-static inline int get_physical_cores() {
+static inline int get_cpu_cores() {
int num_cores = 0;
// Windows
diff --git a/nostrdb.c b/nostrdb.c
@@ -4398,7 +4398,7 @@ inline int ndb_builder_push_tag_str(struct ndb_builder *builder,
//
void ndb_default_config(struct ndb_config *config)
{
- int cores = get_physical_cores();
+ int cores = get_cpu_cores();
config->mapsize = 1024UL * 1024UL * 1024UL * 32UL; // 32 GiB
config->ingester_threads = cores == -1 ? 4 : cores;
config->flags = 0;