Use direct access to hashrate in API.

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

View File

@@ -49,7 +49,6 @@ public:
void get(const xmrig::HttpRequest &req, xmrig::HttpReply &reply) const;
void exec(const xmrig::HttpRequest &req, xmrig::HttpReply &reply);
void tick(const Hashrate *hashrate);
void tick(const NetworkState &results);
protected:
@@ -69,10 +68,6 @@ private:
char m_id[17];
char m_workerId[128];
double *m_hashrate;
double m_highestHashrate;
double m_totalHashrate[3];
int m_threads;
NetworkState m_network;
xmrig::Controller *m_controller;
};