From 3c18da42cdc72060714f51f17aaab08de9934d06 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 24 Oct 2010 20:19:33 +0200 Subject: process renice --- pyLoadCore.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index dadb85436..82900e58a 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -194,6 +194,9 @@ class Core(object): self.debug = self.doDebug or self.config['general']['debug_mode'] + if os.name != "nt" and self.config["general"]["renice"]: + os.system("renice %d %d" % (self.config["general"]["renice"], os.getpid()) ) + if self.config["permission"]["change_group"]: if os.name != "nt": -- cgit v1.2.3