mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-15 19:02:44 -05:00
Correct flex algo hashrate calc
This commit is contained in:
@@ -321,7 +321,7 @@ public:
|
||||
avg_hashrate_buf[0] = '\0';
|
||||
|
||||
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||
if (algorithm.family() == Algorithm::GHOSTRIDER) {
|
||||
if (algorithm.id() == Algorithm::GHOSTRIDER_RTM) {
|
||||
snprintf(avg_hashrate_buf, sizeof(avg_hashrate_buf), " avg " CYAN_BOLD("%s %s"), Hashrate::format(avg_hashrate * scale, num + 16 * 4, 16), h);
|
||||
}
|
||||
# endif
|
||||
@@ -581,7 +581,7 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
|
||||
# endif
|
||||
|
||||
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||
if (job.algorithm().family() == Algorithm::GHOSTRIDER) {
|
||||
if (job.algorithm().id() == Algorithm::GHOSTRIDER_RTM) {
|
||||
d_ptr->initGhostRider();
|
||||
}
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user