From 4e4e8ed460ed7efb64cf696cf1df81e7942081f9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 1 Dec 2023 13:56:24 -0800 Subject: [PATCH] nostrdb/rename get_physical_cores to get_cpu_cores less wrong Signed-off-by: William Casarin --- nostrdb/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c index 380fc98a..c104bcd3 100644 --- a/nostrdb/nostrdb.c +++ b/nostrdb/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;