mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -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
|
except: pass
|
||||||
try:
|
try:
|
||||||
subprocess.Popen(["ionice"], stdout=devnull, stderr=devnull).communicate()
|
subprocess.Popen(["ionice"], stdout=devnull, stderr=devnull).communicate()
|
||||||
|
try:
|
||||||
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
||||||
except: pass
|
except: pass
|
||||||
try:
|
try:
|
||||||
|
@ -347,6 +348,7 @@ def initialize(section=None):
|
||||||
else:
|
else:
|
||||||
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
||||||
except: pass
|
except: pass
|
||||||
|
except: pass
|
||||||
devnull.close()
|
devnull.close()
|
||||||
|
|
||||||
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue