Commit 26ee82de authored by Gerald Salin's avatar Gerald Salin
Browse files

modification to not use all the CPU for the -t parameter (workers

thread) as flash also uses i/O threads
parent 3989c196
......@@ -84,7 +84,11 @@ class Flash (Analysis):
self.software = "flash"
self.options = ""
if self.nb_thread:
self.options += " -t " + str(self.nb_thread)
nb_worker_threads = 1
if self.nb_thread > 2:
nb_worker_threads = int(round(self.nb_thread / 2))
self.options += " -t " + str(nb_worker_threads)
if self.mismatch_ratio:
self.options += " -x " + str(self.mismatch_ratio)
if self.min_overlap:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment