From 8cf0e7c012843c1846a85b08826c7f6b7b10cc5e Mon Sep 17 00:00:00 2001 From: kimwalisch Date: Fri, 16 Feb 2024 23:22:46 +0100 Subject: [PATCH] Remove unused variable --- src/app/stressTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/stressTest.cpp b/src/app/stressTest.cpp index 4cb0f0a37..2b4436114 100644 --- a/src/app/stressTest.cpp +++ b/src/app/stressTest.cpp @@ -12,7 +12,7 @@ /// file in the top level directory. /// -#include +#include #include #include #include @@ -145,12 +145,12 @@ void stressTestInfo(const CmdOptions& opts, if (opts.stressTestMode == "CPU") { - double avgMiB = 3.1; - double avgGiB = avgMiB / 1024.0; - std::cout << std::fixed << std::setprecision(1) << avgMiB << " MiB = " - << std::fixed << std::setprecision(1) << threads * avgMiB << " MiB.\n"; + double sieveSizeKiB = primesieve::get_sieve_size(); + double avgMiB = 2.8 + (sieveSizeKiB / 1024.0); + std::cout << std::fixed << std::setprecision(2) << avgMiB << " MiB = " + << std::fixed << std::setprecision(2) << threads * avgMiB << " MiB.\n"; } - else // stressTestMode == "RAM" + else // RAM stress test std::cout << "1.16 GiB = " << std::fixed << std::setprecision(2) << threads * 1.16 << " GiB.\n"; std::cout << "The stress test keeps on running until either a miscalculation occurs\n";