Browse Source

fuse_loop.cpp

Antonio SJ Musumeci 2 months ago
parent
commit
1610794479
  1. 8
      libfuse/lib/fuse_loop.cpp

8
libfuse/lib/fuse_loop.cpp

@ -205,9 +205,13 @@ _calculate_thread_count(const int raw_thread_count_)
thread_count = 8;
}
else if(raw_thread_count_ < 0)
thread_count = (std::thread::hardware_concurrency() / -raw_thread_count_);
{
thread_count = (std::thread::hardware_concurrency() / -raw_thread_count_);
}
else if(raw_thread_count_ > 0)
thread_count = raw_thread_count_;
{
thread_count = raw_thread_count_;
}
if(thread_count <= 0)
thread_count = 1;

Loading…
Cancel
Save