diff --git a/Cxx11/prk_util.h b/Cxx11/prk_util.h index 08bfe2f91..aec795d92 100644 --- a/Cxx11/prk_util.h +++ b/Cxx11/prk_util.h @@ -413,12 +413,13 @@ namespace prk { { const auto d = std::log10(rate); const int shifts[6] = { 15, 12, 9, 6, 3, 0 }; + const double scales[6] = { 1.e-15, 1.e-12, 1.e-9, 1.e-6, 1.e-3, 1. }; const char prefix[6] = { 'P', 'T', 'G', 'M', 'K', ' ' }; for ( int r=0; r<6; r++ ) { const auto shift = shifts[r]; if (d > shift) { std::cout << name - << " Rate (" << prefix[r] << "F/s): " << std::pow(1.0,-shift) * rate + << " Rate (" << prefix[r] << "F/s): " << scales[r] * rate << " Avg time (s): " << time << std::endl; break; }