Skip to content

Commit

Permalink
fix: compatibility fixes, better cpu utilization
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Dec 31, 2019
1 parent bb677d1 commit 3b91d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def init(path, apps_path=None, no_procfile=False, no_backups=False,
try:
os.makedirs(os.path.join(path, dirname))
except OSError as e:
if e.errno == os.errno.EEXIST:
if e.errno == errno.EEXIST:
pass

setup_logging()
Expand Down Expand Up @@ -716,7 +716,7 @@ def update_translations_p(args):
print('Download failed for', args[0], args[1])

def download_translations_p():
pool = multiprocessing.Pool(4)
pool = multiprocessing.Pool(multiprocessing.cpu_count())

langs = get_langs()
apps = ('frappe', 'erpnext')
Expand Down

0 comments on commit 3b91d98

Please sign in to comment.