From 8356579d2a05007e4ade2db03373aa6fa160f8ee Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 30 Apr 2025 22:10:47 -0500 Subject: [PATCH] fuse_loop.cpp --- libfuse/lib/fuse_loop.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libfuse/lib/fuse_loop.cpp b/libfuse/lib/fuse_loop.cpp index 3936d3cf..903481de 100644 --- a/libfuse/lib/fuse_loop.cpp +++ b/libfuse/lib/fuse_loop.cpp @@ -197,7 +197,6 @@ _calculate_thread_count(const int raw_thread_count_) { int thread_count; - thread_count = 4; if(raw_thread_count_ == 0) { thread_count = std::thread::hardware_concurrency(); @@ -212,6 +211,10 @@ _calculate_thread_count(const int raw_thread_count_) { thread_count = raw_thread_count_; } + else + { + thread_count = 4; + } if(thread_count <= 0) thread_count = 1;