summaryrefslogtreecommitdiff
path: root/patternutils/commands/targs.py
diff options
context:
space:
mode:
Diffstat (limited to 'patternutils/commands/targs.py')
-rw-r--r--patternutils/commands/targs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py
index c1db5e4..3344e69 100644
--- a/patternutils/commands/targs.py
+++ b/patternutils/commands/targs.py
@@ -16,6 +16,7 @@ import click
from .. import template
from .. import config
+from .. import utils
def run_command(
@@ -77,7 +78,7 @@ def targs(
click.secho('jinja2 not installed!', fg='red', err=True)
raise SystemExit
- max_procs = os.cpu_count() * 2 if max_procs == 0 else max_procs
+ max_procs = utils.max_procs() if max_procs == 0 else max_procs
stdout = subprocess.DEVNULL if redirect_stdout else None
stderr = subprocess.DEVNULL if redirect_stderr else None