Updated setListener usage
This commit is contained in:
parent
993733cb1f
commit
67ddfebac3
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ Benchmark::~Benchmark() {
|
||||||
|
|
||||||
// start performance measurements from the first bench_algo
|
// start performance measurements from the first bench_algo
|
||||||
void Benchmark::start() {
|
void Benchmark::start() {
|
||||||
JobResults::setListener(this); // register benchmark as job result listener to compute hashrates there
|
JobResults::setListener(this, m_controller->config()->cpu().isHwAES()); // register benchmark as job result listener to compute hashrates there
|
||||||
// write text before first benchmark round
|
// write text before first benchmark round
|
||||||
LOG_ALERT(">>>>> STARTING ALGO PERFORMANCE CALIBRATION (with %i seconds round)", m_controller->config()->benchAlgoTime());
|
LOG_ALERT(">>>>> STARTING ALGO PERFORMANCE CALIBRATION (with %i seconds round)", m_controller->config()->benchAlgoTime());
|
||||||
// start benchmarking from first PerfAlgo in the list
|
// start benchmarking from first PerfAlgo in the list
|
||||||
|
@ -57,7 +57,7 @@ void Benchmark::finish() {
|
||||||
}
|
}
|
||||||
m_bench_algo = BenchAlgo::INVALID;
|
m_bench_algo = BenchAlgo::INVALID;
|
||||||
m_controller->miner()->pause(); // do not compute anything before job from the pool
|
m_controller->miner()->pause(); // do not compute anything before job from the pool
|
||||||
JobResults::setListener(m_controller->network());
|
JobResults::setListener(m_controller->network(), m_controller->config()->cpu().isHwAES());
|
||||||
m_controller->start();
|
m_controller->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ void Benchmark::start(const BenchAlgo bench_algo) {
|
||||||
|
|
||||||
void Benchmark::onJobResult(const JobResult& result) {
|
void Benchmark::onJobResult(const JobResult& result) {
|
||||||
if (result.clientId != String("benchmark")) { // switch to network pool jobs
|
if (result.clientId != String("benchmark")) { // switch to network pool jobs
|
||||||
JobResults::setListener(m_controller->network());
|
JobResults::setListener(m_controller->network(), m_controller->config()->cpu().isHwAES());
|
||||||
static_cast<IJobResultListener*>(m_controller->network())->onJobResult(result);
|
static_cast<IJobResultListener*>(m_controller->network())->onJobResult(result);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue