Merge branch 'mo' of https://github.com/MoneroOcean/xmrig into mo
This commit is contained in:
commit
99ccceb4a7
1 changed files with 3 additions and 1 deletions
|
@ -345,7 +345,9 @@ void xmrig::Config::parseJSON(const rapidjson::Document &doc)
|
|||
const xmrig::PerfAlgo pa = static_cast<xmrig::PerfAlgo>(a);
|
||||
const rapidjson::Value &key = algo_perf[xmrig::Algorithm::perfAlgoName(pa)];
|
||||
if (key.IsDouble()) {
|
||||
m_algo_perf[pa] = key.GetDouble();
|
||||
m_algo_perf[pa] = static_cast<float>(key.GetDouble());
|
||||
} else if (key.IsInt()) {
|
||||
m_algo_perf[pa] = static_cast<float>(key.GetInt());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue