mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Auto-commit fuse_loop.cpp
This commit is contained in:
parent
29b77610cc
commit
22bfb711ff
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ _calculate_thread_counts(int *read_thread_count_,
|
|||
{
|
||||
int nproc;
|
||||
|
||||
nproc = std::thread::hardware_concurrency();
|
||||
nproc = ::_nproc();
|
||||
*read_thread_count_ = 2;
|
||||
*process_thread_count_ = std::max(2,(nproc - 2));
|
||||
*process_thread_count_ = std::min(8,*process_thread_count_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue