mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 14:13:33 -07:00
fix nice and ionice commands. Fixes #479
This commit is contained in:
parent
17073857e1
commit
dcd06e0f0c
1 changed files with 1 additions and 3 deletions
|
@ -333,7 +333,7 @@ def initialize(section=None):
|
|||
REMOTEPATHS = [ tuple(item.split(',')) for item in REMOTEPATHS.split('|') ] # /volume1/Public/,E:\|/volume2/share/,\\NAS\
|
||||
|
||||
try:
|
||||
NICENESS.extend(['nice', '-n', int(CFG["Posix"]["niceness"])])
|
||||
NICENESS.extend(['nice', '-n%s' % (int(CFG["Posix"]["niceness"]))])
|
||||
except: pass
|
||||
try:
|
||||
NICENESS.extend(['ionice', '-c%s' % (int(CFG["Posix"]["ionice_class"]))])
|
||||
|
@ -344,8 +344,6 @@ def initialize(section=None):
|
|||
else:
|
||||
NICENESS.extend(['ionice', '-n%s' % (int(CFG["Posix"]["ionice_classdata"]))])
|
||||
except: pass
|
||||
if 'ionice' in NICENESS:
|
||||
NICENESS.extend(['-t'])
|
||||
|
||||
COMPRESSEDCONTAINER = [re.compile('.r\d{2}$', re.I),
|
||||
re.compile('.part\d+.rar$', re.I),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue