Revert Platform::setProcessPriority

This commit is contained in:
XMRig 2019-12-27 03:19:03 +07:00
parent dbb721cb5e
commit 4a9a7434f6
No known key found for this signature in database
GPG key ID: 446A53638BE94409
5 changed files with 49 additions and 0 deletions

View file

@ -262,6 +262,7 @@ xmrig::Miner::Miner(Controller *controller)
{
const int priority = controller->config()->cpu().priority();
if (priority >= 0) {
Platform::setProcessPriority(priority);
Platform::setThreadPriority(std::min(priority + 1, 5));
}