Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Feb 16, 2024
1 parent c28a60f commit 8cf0e7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/stressTest.cpp
Expand Up @@ -12,7 +12,7 @@
/// file in the top level directory.
///

#include <primesieve/iterator.hpp>
#include <primesieve.hpp>
#include <primesieve/macros.hpp>
#include <primesieve/pmath.hpp>
#include <primesieve/PrimeSieve.hpp>
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 8cf0e7c

Please sign in to comment.