mirror of https://github.com/raftario/filite.git
default pool size2
This commit is contained in:
parent
483273389e
commit
403da19d0e
|
@ -104,7 +104,7 @@ impl Default for Config {
|
||||||
.expect("Can't convert database path to string")
|
.expect("Can't convert database path to string")
|
||||||
.to_owned()
|
.to_owned()
|
||||||
};
|
};
|
||||||
let pool_size = std::cmp::max(1, num_cpus::get() as u32 / 2);
|
let pool_size = std::cmp::max(2, num_cpus::get() as u32 / 2);
|
||||||
let files_dir = get_data_dir().join("files");
|
let files_dir = get_data_dir().join("files");
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Reference in New Issue