From 24a138d06a7166492d386d415563e67a77009df3 Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Mon, 7 May 2018 09:24:01 +0300 Subject: [PATCH] Fix ionice call Signed-off-by: Timofey Titovets --- ananicy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ananicy.py b/ananicy.py index 3bd6ca10..c02116f2 100755 --- a/ananicy.py +++ b/ananicy.py @@ -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