From 0c5788f1e9b4205e7cb1802468c90b7270d220cf Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 30 Apr 2025 22:14:04 -0500 Subject: [PATCH] fuse_loop.cpp --- libfuse/lib/fuse_loop.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libfuse/lib/fuse_loop.cpp b/libfuse/lib/fuse_loop.cpp index 248c4b20..bcc40dbf 100644 --- a/libfuse/lib/fuse_loop.cpp +++ b/libfuse/lib/fuse_loop.cpp @@ -199,8 +199,9 @@ _calculate_thread_count(const int raw_thread_count_) if(raw_thread_count_ == 0) { - thread_count = std::min(8, - std::thread::hardware_concurrency()); + thread_count = std::thread::hardware_concurrency(); + thread_count = std::min(8,thread_count); + } else if(raw_thread_count_ < 0) {