Remove benchmark size from Job class.

This commit is contained in:
XMRig 2020-11-17 05:28:42 +07:00
parent d8f9501ac8
commit e2ea11ffeb
No known key found for this signature in database
GPG key ID: 446A53638BE94409
9 changed files with 25 additions and 32 deletions

View file

@ -51,6 +51,11 @@
#endif
#ifdef XMRIG_FEATURE_BENCHMARK
# include "backend/common/benchmark/BenchState.h"
#endif
#include <algorithm>
#include <cinttypes>
#include <ctime>
@ -264,7 +269,7 @@ void xmrig::Network::setJob(IClient *client, const Job &job, bool donate)
const char *scale = NetworkState::scaleDiff(diff);
# ifdef XMRIG_FEATURE_BENCHMARK
const uint32_t size = job.benchSize();
const uint32_t size = BenchState::size();
if (size) {
LOG_NOTICE("%s " MAGENTA_BOLD("start benchmark ") "hashes " CYAN_BOLD("%u%s") " algo " WHITE_BOLD("%s") " print_time " CYAN_BOLD("%us"),
Tags::bench(),