1
0
mirror of git://jb55.com/damus synced 2024-10-04 19:00:42 +00:00

nostrdb/rename get_physical_cores to get_cpu_cores

less wrong

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2023-12-01 13:56:24 -08:00
parent 3605edad8b
commit 4e4e8ed460

View File

@ -4398,7 +4398,7 @@ inline int ndb_builder_push_tag_str(struct ndb_builder *builder,
// //
void ndb_default_config(struct ndb_config *config) 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->mapsize = 1024UL * 1024UL * 1024UL * 32UL; // 32 GiB
config->ingester_threads = cores == -1 ? 4 : cores; config->ingester_threads = cores == -1 ? 4 : cores;
config->flags = 0; config->flags = 0;