Correct flex algo hashrate calc

This commit is contained in:
MoneroOcean 2024-05-30 23:32:13 +03:00
parent 20184c6c9f
commit d4252f7133
8 changed files with 20 additions and 15 deletions

View file

@ -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