Merge pull request #187 from Atheros1/master
Emergency fix for 64-bit Windows systems
This commit is contained in:
commit
3303dfe1c6
|
@ -14,7 +14,12 @@ def _set_idle():
|
||||||
handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
|
handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid)
|
||||||
win32process.SetPriorityClass(handle, win32process.IDLE_PRIORITY_CLASS)
|
win32process.SetPriorityClass(handle, win32process.IDLE_PRIORITY_CLASS)
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
|
#Linux
|
||||||
os.nice(20)
|
os.nice(20)
|
||||||
|
except:
|
||||||
|
#Windows 64-bit
|
||||||
|
pass
|
||||||
|
|
||||||
def _pool_worker(nonce, initialHash, target, pool_size):
|
def _pool_worker(nonce, initialHash, target, pool_size):
|
||||||
_set_idle()
|
_set_idle()
|
||||||
|
|
Reference in New Issue
Block a user