Skip to content

Commit

Permalink
Fix bug for when no multithreaded config is given
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-henry committed Sep 4, 2024
1 parent 95983ba commit e42848d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/OneService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,7 @@ class OneServiceImpl : public OneService
_portMappingEnabled = OSUtils::jsonBool(settings["portMappingEnabled"],true);
#if defined(__LINUX__) || defined(__FreeBSD__)
_multicoreEnabled = OSUtils::jsonBool(settings["multicoreEnabled"],false);
_concurrency = OSUtils::jsonInt(settings["concurrency"],0);
_concurrency = OSUtils::jsonInt(settings["concurrency"],1);
_cpuPinningEnabled = OSUtils::jsonBool(settings["cpuPinningEnabled"],false);
if (_multicoreEnabled) {
unsigned int maxConcurrency = std::thread::hardware_concurrency();
Expand Down

0 comments on commit e42848d

Please sign in to comment.