1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 16:33:32 -05:00

Restore Hashrate class interface.

This commit is contained in:
XMRig
2020-12-05 11:09:25 +07:00
parent bd82b3c852
commit acf7ec8355
7 changed files with 90 additions and 103 deletions

View File

@@ -203,7 +203,7 @@ public:
continue;
}
for (size_t i = 1; i < hr->threads(); i++) {
for (size_t i = 0; i < hr->threads(); i++) {
Value thread(kArrayType);
thread.PushBack(Hashrate::normalize(hr->calc(i, Hashrate::ShortInterval)), allocator);
thread.PushBack(Hashrate::normalize(hr->calc(i, Hashrate::MediumInterval)), allocator);