From bfdeabaef07cd87838e6b7325354d83dcc2ba90f Mon Sep 17 00:00:00 2001 From: Charles Nicholson Date: Sat, 30 Dec 2023 18:09:30 -0500 Subject: [PATCH] tidy --- tests/test_many_random_payloads.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_many_random_payloads.cc b/tests/test_many_random_payloads.cc index 832d990..2d2ef00 100644 --- a/tests/test_many_random_payloads.cc +++ b/tests/test_many_random_payloads.cc @@ -49,9 +49,8 @@ TEST_CASE("many random payloads") { } }; std::vector 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); }