From 3bbe3fa48124718c81ca3570fc94778f6ba13a96 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 14 Nov 2020 01:02:41 +0700 Subject: [PATCH] Fixed build without benchmark. --- src/net/Network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/Network.cpp b/src/net/Network.cpp index 07999ab94..0995d62b0 100644 --- a/src/net/Network.cpp +++ b/src/net/Network.cpp @@ -262,9 +262,9 @@ void xmrig::Network::setJob(IClient *client, const Job &job, bool donate) { uint64_t diff = job.diff();; const char *scale = NetworkState::scaleDiff(diff); - const uint32_t size = job.benchSize(); # ifdef XMRIG_FEATURE_BENCHMARK + const uint32_t size = job.benchSize(); 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(),