Skip to content
Snippets Groups Projects
Commit 36e97988 authored by Rawel's avatar Rawel
Browse files

made num_cores more strict to prevent too many connections

parent dac01256
Branches
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ def extract_most_blamed_commit(heuristic_mapping):
def main():
num_cores = os.cpu_count()
num_cores = min(os.cpu_count(), 150)
db_repo = DBRepository()
mappings = db_repo.get_all_entries_with_heuristic_mapping()
chunk_size = calculate_chunk_size(mappings, num_cores)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment