1 |
commit: bde66462659a1418f0d88e71e0f61b741e2c109a |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 16 17:36:51 2019 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 16 17:36:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=bde66462 |
7 |
|
8 |
util: fix thinko introduced in cleanup of get_cpu_count work |
9 |
|
10 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
11 |
|
12 |
lib/portage/util/futures/iter_completed.py | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/lib/portage/util/futures/iter_completed.py b/lib/portage/util/futures/iter_completed.py |
16 |
index 4c48ea0fe..9554b4338 100644 |
17 |
--- a/lib/portage/util/futures/iter_completed.py |
18 |
+++ b/lib/portage/util/futures/iter_completed.py |
19 |
@@ -61,8 +61,8 @@ def async_iter_completed(futures, max_jobs=None, max_load=None, loop=None): |
20 |
""" |
21 |
loop = asyncio._wrap_loop(loop) |
22 |
|
23 |
- max_jobs = max_jobs or portage.util.cpuinfo.get_cpu_count() |
24 |
- max_load = max_load or portage.util.cpuinfo.get_cpu_count() |
25 |
+ max_jobs = max_jobs or get_cpu_count() |
26 |
+ max_load = max_load or get_cpu_count() |
27 |
|
28 |
future_map = {} |
29 |
def task_generator(): |