Added hashrate information to "GET /1/threads" endpoint.
This commit is contained in:
parent
c221bf09f6
commit
c0a72edf9a
3 changed files with 33 additions and 3 deletions
|
@ -49,6 +49,8 @@ class Workers
|
|||
{
|
||||
public:
|
||||
static Job job();
|
||||
static size_t hugePages();
|
||||
static size_t threads();
|
||||
static void printHashrate(bool detail);
|
||||
static void setEnabled(bool enabled);
|
||||
static void setJob(const Job &job, bool donate);
|
||||
|
@ -60,7 +62,6 @@ public:
|
|||
static inline bool isOutdated(uint64_t sequence) { return m_sequence.load(std::memory_order_relaxed) != sequence; }
|
||||
static inline bool isPaused() { return m_paused.load(std::memory_order_relaxed) == 1; }
|
||||
static inline Hashrate *hashrate() { return m_hashrate; }
|
||||
static inline size_t threads() { return m_status.threads; }
|
||||
static inline uint64_t sequence() { return m_sequence.load(std::memory_order_relaxed); }
|
||||
static inline void pause() { m_active = false; m_paused = 1; m_sequence++; }
|
||||
static inline void setListener(IJobResultListener *listener) { m_listener = listener; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue