Skip to content

Commit

Permalink
Merge branch 'main' into feature/no-sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot authored Aug 28, 2023
2 parents 1fb42db + 9fb6e6f commit fa96a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ unsigned get_parallelism(int parallelism)
#if B2_USE_STD_THREADS
return parallelism >= 0
? parallelism
: std::min(unsigned(globs.jobs), system_info().cpu_thread_count());
: std::min(unsigned(globs.jobs), system_info().cpu_thread_count()) - 1;
#else
return 0;
#endif
Expand Down

0 comments on commit fa96a33

Please sign in to comment.