CC-4999: Do silan analysis quietly in the background

-set silan nice level to 19
This commit is contained in:
Martin Konecny 2013-03-06 19:48:35 -05:00
parent 0321464ab8
commit fc261035a8
1 changed files with 1 additions and 1 deletions

View File

@ -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)