1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-14 02:22:50 -05:00

Fixed automatic variant.

This commit is contained in:
XMRig
2018-09-01 00:31:31 +03:00
parent b948474d01
commit a3873930a0
7 changed files with 21 additions and 23 deletions

View File

@@ -166,9 +166,12 @@ bool Network::isColors() const
void Network::setJob(Client *client, const Job &job, bool donate)
{
xmrig::Algorithm algorithm = job.algorithm();
algorithm.setVariant(job.variant());
LOG_INFO(isColors() ? MAGENTA_BOLD("new job") " from " WHITE_BOLD("%s:%d") " diff " WHITE_BOLD("%d") " algo " WHITE_BOLD("%s")
: "new job from %s:%d diff %d algo %s",
client->host(), client->port(), job.diff(), job.algorithm().shortName());
client->host(), client->port(), job.diff(), algorithm.shortName());
m_state.diff = job.diff();
Workers::setJob(job, donate);