mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
use get_physical for only physical core count
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
0352ea7dda
commit
90d90c46da
3 files changed
+4
-4
No files matched your search
@@ -48,7 +48,7 @@ fn db_options(rocksdb_cache: &rocksdb::Cache, config: &Config) -> rocksdb::Optio
|
||||
};
|
||||
|
||||
let threads = if config.rocksdb_parallelism_threads == 0 {
|
||||
num_cpus::get() // max CPUs if user specified 0
|
||||
num_cpus::get_physical() // max cores if user specified 0
|
||||
} else {
|
||||
config.rocksdb_parallelism_threads
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user