Leave one cpu for the gui.
This commit is contained in:
parent
4d3d0c52bf
commit
a9b579e7d6
1 changed files with 1 additions and 1 deletions
2
vigil
2
vigil
|
|
@ -921,7 +921,7 @@ def save_state(pickle_path, summary, screen, log):
|
|||
def main(root_path, loop, worker_count=None, is_sandboxed=True,
|
||||
editor_command=None, theme=None, is_being_tested=False):
|
||||
if worker_count is None:
|
||||
worker_count = multiprocessing.cpu_count()
|
||||
worker_count = max(multiprocessing.cpu_count() - 1, 1)
|
||||
if theme is None:
|
||||
theme = "native"
|
||||
os.environ["PYGMENT_STYLE"] = theme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue