mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
Merge fix
This commit is contained in:
@@ -218,9 +218,12 @@ void MoBenchmark::onJobResult(const JobResult& result) {
|
|||||||
for (auto backend : m_controller->miner()->backends()) {
|
for (auto backend : m_controller->miner()->backends()) {
|
||||||
const Hashrate *hr = backend->hashrate();
|
const Hashrate *hr = backend->hashrate();
|
||||||
if (!hr) continue;
|
if (!hr) continue;
|
||||||
t[0] += hr->calc(Hashrate::ShortInterval);
|
auto hr_pair = hr->calc(Hashrate::ShortInterval);
|
||||||
t[1] += hr->calc(Hashrate::MediumInterval);
|
if (hr_pair.first) t[0] += hr_pair.second;
|
||||||
t[2] += hr->calc(Hashrate::LargeInterval);
|
hr_pair = hr->calc(Hashrate::MediumInterval)
|
||||||
|
if (hr_pair.first) t[1] += hr_pair.second;
|
||||||
|
hr_pair = hr->calc(Hashrate::LargeInterval)
|
||||||
|
if (hr_pair.first) t[2] += hr_pair.second;
|
||||||
}
|
}
|
||||||
double hashrate = 0.0f;
|
double hashrate = 0.0f;
|
||||||
if (!(hashrate = t[2]))
|
if (!(hashrate = t[2]))
|
||||||
|
|||||||
Reference in New Issue
Block a user