diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-08-06 14:41:12 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-08-06 14:41:12 -0400 |
commit | 60836f0a48b0d81bf431b96293ae5130e23fee8a (patch) | |
tree | e5f8beb7a6608e4730d52788e3ed9effff8687d0 | |
parent | 52e6d95da40fa5d19d7cc43d1f133dfc51240ba4 (diff) | |
download | grokmirror-60836f0a48b0d81bf431b96293ae5130e23fee8a.tar.gz |
Fix pull_threads logic error
The logic error caused pull_threads to always be 1 if pull_threads is
set in the config file.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | grokmirror/pull.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grokmirror/pull.py b/grokmirror/pull.py index d205b69..950c4c9 100755 --- a/grokmirror/pull.py +++ b/grokmirror/pull.py @@ -1173,7 +1173,7 @@ def pull_mirror(config, nomtime=False, forcepurge=False, runonce=False): if pull_threads < 1 and mp.cpu_count() > 1: # take half of available CPUs by default pull_threads = int(mp.cpu_count() / 2) - else: + elif pull_threads < 1: pull_threads = 1 busy = set() |