Hashrate: specify ambiguous type

This commit is contained in:
cohcho 2020-10-09 17:06:49 +00:00
parent 9826039373
commit d8bfcc8d26

View file

@ -183,7 +183,7 @@ rapidjson::Value xmrig::Hashrate::toJSON(rapidjson::Document &doc) const
using namespace rapidjson;
auto &allocator = doc.GetAllocator();
Value out(kArrayType);
rapidjson::Value out(kArrayType);
out.PushBack(normalize(calc(ShortInterval)), allocator);
out.PushBack(normalize(calc(MediumInterval)), allocator);
out.PushBack(normalize(calc(LargeInterval)), allocator);
@ -197,7 +197,7 @@ rapidjson::Value xmrig::Hashrate::toJSON(size_t threadId, rapidjson::Document &d
using namespace rapidjson;
auto &allocator = doc.GetAllocator();
Value out(kArrayType);
rapidjson::Value out(kArrayType);
out.PushBack(normalize(calc(threadId, ShortInterval)), allocator);
out.PushBack(normalize(calc(threadId, MediumInterval)), allocator);
out.PushBack(normalize(calc(threadId, LargeInterval)), allocator);