Add extra information to threads API.
This commit is contained in:
parent
c0a72edf9a
commit
d04a1fcb8f
4 changed files with 30 additions and 7 deletions
|
@ -285,6 +285,8 @@ void ApiRouter::getThreads(rapidjson::Document &doc) const
|
|||
auto &allocator = doc.GetAllocator();
|
||||
const Hashrate *hr = Workers::hashrate();
|
||||
|
||||
Workers::threadsSummary(doc);
|
||||
|
||||
const std::vector<xmrig::IThread *> &threads = m_controller->config()->threads();
|
||||
rapidjson::Value list(rapidjson::kArrayType);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue