Correct flex algo hashrate calc
This commit is contained in:
parent
20184c6c9f
commit
d4252f7133
8 changed files with 20 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue