Skip to content

Commit 6bcf855

Browse files
authored
Merge pull request #46 from davidalger/patch-1
Fix invalid psutil method call on darwin
2 parents c8acc9a + 555071b commit 6bcf855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mwscan/mwscan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def main():
202202
args = parse_args()
203203

204204
# don't swamp the machine
205-
if psutil:
205+
if psutil and sys.platform != "darwin":
206206
mylife = psutil.Process()
207207
mylife.ionice(psutil.IOPRIO_CLASS_IDLE)
208208

0 commit comments

Comments
 (0)