From 16107944798bb61b7bb342ce32f2e76e0bf78957 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 29 Apr 2025 23:24:53 -0500 Subject: [PATCH] fuse_loop.cpp --- libfuse/lib/fuse_loop.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libfuse/lib/fuse_loop.cpp b/libfuse/lib/fuse_loop.cpp index 0d330828..6c8cef59 100644 --- a/libfuse/lib/fuse_loop.cpp +++ b/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;