mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-03 03:01:51 +02:00
Pre create upload data, to not impact timing
This commit is contained in:
+3
-5
@@ -1079,13 +1079,11 @@ class Speedtest(object):
|
||||
for i, size in enumerate(sizes):
|
||||
# We set ``0`` for ``start`` and handle setting the actual
|
||||
# ``start`` in ``HTTPUploader`` to get better measurements
|
||||
data = HTTPUploaderData(size, 0, self.config['length']['upload'])
|
||||
data._create_data()
|
||||
requests.append(
|
||||
(
|
||||
build_request(
|
||||
self.best['url'],
|
||||
HTTPUploaderData(size, 0,
|
||||
self.config['length']['upload'])
|
||||
),
|
||||
build_request(self.best['url'], data),
|
||||
size
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user