Added "paused" field to API.

This commit is contained in:
XMRig 2019-10-21 21:27:05 +07:00
parent c29fa62260
commit 71ee145f70

View file

@ -152,6 +152,7 @@ public:
reply.AddMember("ua", StringRef(Platform::userAgent()), allocator); reply.AddMember("ua", StringRef(Platform::userAgent()), allocator);
reply.AddMember("cpu", Cpu::toJSON(doc), allocator); reply.AddMember("cpu", Cpu::toJSON(doc), allocator);
reply.AddMember("donate_level", controller->config()->pools().donateLevel(), allocator); reply.AddMember("donate_level", controller->config()->pools().donateLevel(), allocator);
reply.AddMember("paused", !enabled, allocator);
Value algo(kArrayType); Value algo(kArrayType);