Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Fix ionice call
Browse files Browse the repository at this point in the history
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
  • Loading branch information
nefelim4ag committed May 7, 2018
1 parent d899b94 commit 24a138d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ananicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def ioclass(self, pid: int, ioclass: str):
print(msg, flush=True)

def ionice_cmd(self, pid: int, ionice: int):
subprocess.run(["ionice", "-p", str(pid), "-c", str(ionice)], stdout=subprocess.DEVNULL)
subprocess.run(["ionice", "-p", str(pid), "-n", str(ionice)], stdout=subprocess.DEVNULL)

def ionice(self, pid, ionice):
c_ionice = self.proc[pid].ionice
Expand Down

0 comments on commit 24a138d

Please sign in to comment.