New hashtable report.

This commit is contained in:
XMRig 2017-06-16 10:19:14 +03:00
parent e759ddca49
commit 4e4c54314b
4 changed files with 57 additions and 7 deletions

View file

@ -107,7 +107,13 @@ void Network::onJobReceived(Client *client, const Job &job)
void Network::onJobResult(const JobResult &result)
{
LOG_NOTICE("SHARE FOUND");
if (m_options->colors()) {
LOG_NOTICE("\x1B[01;32mSHARE FOUND");
}
else {
LOG_NOTICE("SHARE FOUND");
}
m_pools[result.poolId]->submit(result);
}
@ -156,8 +162,8 @@ void Network::addPool(const Url *url)
void Network::setJob(Client *client, const Job &job)
{
if (m_options->colors()){
LOG_INFO("\x1B[01;33mnew job\x1B[0m from \"%s:%d\", diff: %d", client->host(), client->port(), job.diff());
if (m_options->colors()) {
LOG_INFO("\x1B[01;35mnew job\x1B[0m from \"%s:%d\", diff: %d", client->host(), client->port(), job.diff());
}
else {