Fixed namespace usage

This commit is contained in:
MoneroOcean 2019-02-21 15:57:12 -08:00
parent cb22009ee5
commit 4414287132
2 changed files with 4 additions and 4 deletions

View file

@ -55,10 +55,10 @@ void Benchmark::start_perf_bench(const xmrig::PerfAlgo pa) {
Workers::setJob(job, false); // set job for workers to compute
}
void Benchmark::onJobResult(const JobResult& result) {
void Benchmark::onJobResult(const xmrig::JobResult& result) {
if (result.poolId != -100) { // switch to network pool jobs
Workers::setListener(m_controller->network());
static_cast<IJobResultListener*>(m_controller->network())->onJobResult(result);
static_cast<xmrig::IJobResultListener*>(m_controller->network())->onJobResult(result);
return;
}
// ignore benchmark results for other perf algo

View file

@ -30,7 +30,7 @@
#include "interfaces/IJobResultListener.h"
#include "core/Controller.h"
class Benchmark : public IJobResultListener {
class Benchmark : public xmrig::IJobResultListener {
bool m_shouldSaveConfig; // should save config after all benchmark rounds
xmrig::PerfAlgo m_pa; // current perf algo we benchmark
uint64_t m_hash_count; // number of hashes calculated for current perf algo
@ -39,7 +39,7 @@ class Benchmark : public IJobResultListener {
uint64_t get_now() const; // get current time in ms
void onJobResult(const JobResult&) override; // onJobResult is called after each computed benchmark hash
void onJobResult(const xmrig::JobResult&) override; // onJobResult is called after each computed benchmark hash
public:
Benchmark() : m_shouldSaveConfig(false) {}