Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesnicholson committed Dec 30, 2023
1 parent 0c8de95 commit bfdeaba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_many_random_payloads.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ TEST_CASE("many random payloads") {
} };

std::vector<std::thread> threads;
auto const thread_count{ std::max(1u, std::thread::hardware_concurrency() - 1) };

for (auto i{ 0u }; i < thread_count; ++i) {
for (auto i{ 0u }, n{ std::max(1u, std::thread::hardware_concurrency() - 1) }; i < n;
++i) {
threads.emplace_back(thread_proc, i);
}

Expand Down

0 comments on commit bfdeaba

Please sign in to comment.