CC-4999: Do silan analysis quietly in the background
-set silan nice level to 19
This commit is contained in:
parent
0321464ab8
commit
fc261035a8
|
@ -42,7 +42,7 @@ class SilanAnalyzer(Thread):
|
|||
full_path = f['fp']
|
||||
# silence detect(set default queue in and out)
|
||||
try:
|
||||
command = ['silan', '-b', '-f', 'JSON', full_path]
|
||||
command = ['nice', '-n', '19', 'silan', '-b', '-f', 'JSON', full_path]
|
||||
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
|
||||
out = proc.communicate()[0].strip('\r\n')
|
||||
info = json.loads(out)
|
||||
|
|
Loading…
Reference in New Issue