]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Fix configuration of nice level.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Feb 2010 19:41:36 +0000 (20:41 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Feb 2010 19:41:36 +0000 (20:41 +0100)
naoki/util.py

index 1cf85ade121388539b909d7397c83306d7283d7c..d0dcf55c3c335b29e0410e9c2741e4d16d0abc10 100644 (file)
@@ -134,7 +134,7 @@ def do(command, shell=False, chrootPath=None, cwd=None, timeout=0, raiseExc=True
        preexec = ChildPreExec(personality, chrootPath, cwd)
 
        if config["nice_level"]:
-               command = "nice -n %d %s" % (config["nice_level"], command)
+               command = "nice -n %s %s" % (config["nice_level"], command)
 
        try:
                child = None