From e329dd87b80104dd434dc1bd90bf68dd62a3b69d Mon Sep 17 00:00:00 2001 From: Andrey Nikiforov Date: Wed, 21 Oct 2020 06:13:10 -0700 Subject: [PATCH] set default threads to 1 --- README.md | 3 +-- icloudpd/base.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0edbc9738..e47173881 100644 --- a/README.md +++ b/README.md @@ -118,8 +118,7 @@ pip install icloudpd prints log messages on separate lines (Progress bar is disabled by default if there is no tty attached) - --threads-num INTEGER RANGE Number of cpu threads(default: cpu count * - 5) + --threads-num INTEGER RANGE Number of cpu threads (default: 1) --version Show the version and exit. -h, --help Show this message and exit. diff --git a/icloudpd/base.py b/icloudpd/base.py index f2b732db1..36c7731fb 100755 --- a/icloudpd/base.py +++ b/icloudpd/base.py @@ -10,7 +10,6 @@ import subprocess import json import threading -import multiprocessing import click from tqdm import tqdm @@ -195,9 +194,9 @@ ) @click.option( "--threads-num", - help="Number of cpu threads(default: cpu count * 5)", + help="Number of cpu threads (default: 1)", type=click.IntRange(1), - default=multiprocessing.cpu_count() * 5, + default=1, ) @click.version_option() # pylint: disable-msg=too-many-arguments,too-many-statements