1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-02-01 01:42:59 -05:00

Remove benchmark size from Job class.

This commit is contained in:
XMRig
2020-11-17 05:28:42 +07:00
parent d8f9501ac8
commit e2ea11ffeb
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(),