Use direct access to hashrate in API.

This commit is contained in:
XMRig 2018-04-17 10:29:37 +07:00
parent b32ec5342e
commit c221bf09f6
8 changed files with 26 additions and 61 deletions

View file

@ -62,16 +62,6 @@ void Api::exec(const xmrig::HttpRequest &req, xmrig::HttpReply &reply)
}
void Api::tick(const Hashrate *hashrate)
{
if (!m_router) {
return;
}
m_router->tick(hashrate);
}
void Api::tick(const NetworkState &network)
{
if (!m_router) {