Fixed benchmark progress logging.

This commit is contained in:
XMRig 2020-11-23 21:41:51 +07:00
parent 8cbf90d35b
commit edf7885172
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -57,5 +57,5 @@ void xmrig::Benchmark::printProgress() const
const double dt = static_cast<double>(Chrono::steadyMSecs() - m_startTime) / 1000.0;
const double percent = static_cast<double>(m_current) / BenchState::size() * 100.0;
LOG_NOTICE("%s " MAGENTA_BOLD("%5.2f%% ") CYAN_BOLD("%" PRIu64) CYAN("/%" PRIu64) BLACK_BOLD(" (%.3fs)"), Tags::bench(), percent, m_current, BenchState::size(), dt);
LOG_NOTICE("%s " MAGENTA_BOLD("%5.2f%% ") CYAN_BOLD("%" PRIu64) CYAN("/%u") BLACK_BOLD(" (%.3fs)"), Tags::bench(), percent, m_current, BenchState::size(), dt);
}