From ed193c4fad708b15b91007b7e9afd64e72178a98 Mon Sep 17 00:00:00 2001 From: robtor Date: Tue, 7 Nov 2023 12:16:08 +0100 Subject: [PATCH] fix sqrt --- task1/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/task1/main.cpp b/task1/main.cpp index de8630f..098935e 100644 --- a/task1/main.cpp +++ b/task1/main.cpp @@ -65,7 +65,7 @@ auto main(int argc, char *argv[]) -> int { const int threads = std::thread::hardware_concurrency(); - const int max_depth = std::log(threads); + const int max_depth = std::sqrt(threads); t1 = std::chrono::high_resolution_clock::now(); MergeSorterMT msmt([](int32_t a, int32_t b) {