mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-15 02:52:38 -05:00
Sync changes with amd miner and update summary.
This commit is contained in:
@@ -38,7 +38,7 @@ class Hashrate
|
||||
{
|
||||
public:
|
||||
enum Intervals {
|
||||
ShortInterval = 2500,
|
||||
ShortInterval = 10000,
|
||||
MediumInterval = 60000,
|
||||
LargeInterval = 900000
|
||||
};
|
||||
@@ -47,13 +47,15 @@ public:
|
||||
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);
|
||||
void print();
|
||||
void print() const;
|
||||
void stop();
|
||||
void updateHighest();
|
||||
|
||||
inline double highest() const { return m_highest; }
|
||||
inline size_t threads() const { return m_threads; }
|
||||
|
||||
static const char *format(double h, char *buf, size_t size);
|
||||
|
||||
private:
|
||||
static void onReport(uv_timer_t *handle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user