Skip to content

Commit

Permalink
Merge pull request #178 from AndreyNikiforov/bug/default-threads-one
Browse files Browse the repository at this point in the history
set default threads to 1
  • Loading branch information
AndreyNikiforov authored Oct 22, 2020
2 parents 5f05dc9 + e329dd8 commit 2e9416c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
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

0 comments on commit 2e9416c

Please sign in to comment.