1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-25 21:52:54 -05:00

Avoid deleting hashrate object

This commit is contained in:
MoneroOcean
2018-10-11 18:57:09 +02:00
parent c9907eb617
commit e4cbd36d22
3 changed files with 25 additions and 29 deletions

View File

@@ -44,7 +44,7 @@ public:
};
Hashrate(size_t threads, xmrig::Controller *controller);
~Hashrate();
void set_threads(size_t threads);
double calc(size_t ms) const;
double calc(size_t threadId, size_t ms) const;
void add(size_t threadId, uint64_t count, uint64_t timestamp);