Added hashrate to reports.

This commit is contained in:
XMRig 2017-09-01 03:45:08 +03:00
parent 30dd7d6fe4
commit 1651b041de
7 changed files with 99 additions and 7 deletions

View file

@ -67,3 +67,15 @@ const char *Api::get(const char *url, size_t *size, int *status)
return m_buf;
}
void Api::tick(const Hashrate *hashrate)
{
if (!m_state) {
return;
}
uv_mutex_lock(&m_mutex);
m_state->tick(hashrate);
uv_mutex_unlock(&m_mutex);
}