mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
fix ionice check. Fixes #504
This commit is contained in:
parent
fa8ad29e88
commit
b9778128f0
1 changed files with 9 additions and 7 deletions
|
@ -339,6 +339,7 @@ def initialize(section=None):
|
|||
except: pass
|
||||
try:
|
||||
subprocess.Popen(["ionice"], stdout=devnull, stderr=devnull).communicate()
|
||||
try:
|
||||
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
||||
except: pass
|
||||
try:
|
||||
|
@ -347,6 +348,7 @@ def initialize(section=None):
|
|||
else:
|
||||
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
||||
except: pass
|
||||
except: pass
|
||||
devnull.close()
|
||||
|
||||
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue