mirror of
https://github.com/curl/curl.git
synced 2026-08-02 07:50:28 +03:00
scorecard: fix max_upload init value in ul_parallel()
"In `ul_parallel`, `max_parallel` is computed using
`self._download_parallel` instead of `self._upload_parallel`. This
causes the upload parallelism to incorrectly follow the download
parallel setting. It should use `self._upload_parallel` to be consistent
with how `uploads()` computes `max_parallel`."
Reported by GitHub Code Quality
Follow-up to 30ef79ed93 #17295
Closes #22421
This commit is contained in:
parent
387b4c5e4c
commit
ca96fd5190
1 changed files with 1 additions and 1 deletions
|
|
@ -542,7 +542,7 @@ class ScoreRunner:
|
|||
samples = []
|
||||
errors = []
|
||||
profiles = []
|
||||
max_parallel = self._download_parallel if self._download_parallel > 0 else count
|
||||
max_parallel = self._upload_parallel if self._upload_parallel > 0 else count
|
||||
url = f'{url}?id=[0-{count - 1}]'
|
||||
self.info('parallel...')
|
||||
for _ in range(nsamples):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue