Added hashrate to reports.
This commit is contained in:
parent
30dd7d6fe4
commit
1651b041de
7 changed files with 99 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue