From 32efdca33cd7881d6a034aec0864f98979e3cb9e Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 3 Jun 2013 20:41:39 -0400 Subject: [PATCH] Emergency fix for 64-bit Windows systems --- src/proofofwork.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/proofofwork.py b/src/proofofwork.py index 5aef6dc4..8f316096 100644 --- a/src/proofofwork.py +++ b/src/proofofwork.py @@ -14,7 +14,12 @@ def _set_idle(): handle = win32api.OpenProcess(win32con.PROCESS_ALL_ACCESS, True, pid) win32process.SetPriorityClass(handle, win32process.IDLE_PRIORITY_CLASS) except: - os.nice(20) + try: + #Linux + os.nice(20) + except: + #Windows 64-bit + pass def _pool_worker(nonce, initialHash, target, pool_size): _set_idle()