Add extra information to threads API.

This commit is contained in:
XMRig 2018-04-17 14:36:32 +07:00
parent c0a72edf9a
commit d04a1fcb8f
4 changed files with 30 additions and 7 deletions

View file

@ -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);