mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
fbc9e92fdb
We cap our number of CPU worker threads to at least 2 even if we have a single core. But also, before we used to always add one extra thread regardless of the number of core. This meant that we were off when re-using the get_num_cpus() function when calculating our onionskin work overhead because we were always off by one. This commit makes it that we always use the number of thread our actual thread pool was configured with. Fixes #40719 Signed-off-by: David Goulet <dgoulet@torproject.org>
4 lines
185 B
Plaintext
4 lines
185 B
Plaintext
o Minor bugfixes (cpuworker, relay):
|
|
- Fix an off by one overload calculation on the number of CPUs being used by
|
|
our thread pool. Fixes bug 40719; bugfix on 0.3.5.1-alpha.
|