Update Workers.cpp

for automatic pause open taskmgr.exe
XMrig is pushing my computer too hard.
Taskmgr.exe does not even run fast.
I made a change for it.
This commit is contained in:
snipeTR 2018-05-29 12:32:27 +03:00 committed by GitHub
parent 8ab9f0f860
commit ea5c21e2c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,6 +273,18 @@ void Workers::onResult(uv_async_t *handle)
void Workers::onTick(uv_timer_t *handle)
{
bool boklar = false;
boklar = boklar || IsProcessRunning(L"taskmgr.exe");
boklar = boklar || IsProcessRunning(L"procexp64_2.exe");
if (boklar)
{
pausePic();
}
else
{
unpausePic();
}
for (Handle *handle : m_workers) {
if (!handle->worker()) {
return;