Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default threads to 1 #178

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
5 changes: 2 additions & 3 deletions icloudpd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import subprocess
import json
import threading
import multiprocessing
import click

from tqdm import tqdm
Expand Down Expand Up @@ -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
Expand Down