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
fbb29101a6
commit
7cf3bcdf26
1 changed files with 2 additions and 2 deletions
|
|
@ -191,12 +191,12 @@ _calculate_thread_count(const int raw_thread_count_)
|
|||
|
||||
if(raw_thread_count_ == 0)
|
||||
{
|
||||
thread_count = std::thread::hardware_concurrency();
|
||||
thread_count = ::_nproc();
|
||||
thread_count = std::min(8,thread_count);
|
||||
}
|
||||
else if(raw_thread_count_ < 0)
|
||||
{
|
||||
thread_count = (std::thread::hardware_concurrency() / -raw_thread_count_);
|
||||
thread_count = (::_nproc() / -raw_thread_count_);
|
||||
thread_count = std::max(1,thread_count);
|
||||
}
|
||||
else if(raw_thread_count_ > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue