Skip to content

Commit

Permalink
qa
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Sep 1, 2023
1 parent 5acbeb3 commit 9ab0957
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libsast/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def read_yaml(file_obj, text=False):

def get_worker_count():
"""Get worker count for pool."""
worker_count = 16
try:
worker_count = os.cpu_count()
if not worker_count:
Expand All @@ -85,5 +84,5 @@ def get_worker_count():
if os.getenv('LIBSAST_WORKERS'):
worker_count = int(os.getenv('LIBSAST_WORKERS'))
except Exception:
pass
worker_count = 16
return worker_count

0 comments on commit 9ab0957

Please sign in to comment.