Skip to content

Commit

Permalink
PyLint
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Sep 27, 2021
1 parent 4c1e76e commit acc2daf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion experiment/popularity_community/initial_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _parse_argv():


def _run_tribler(arguments):
global interval_in_sec, output_file_path
global interval_in_sec, output_file_path # pylint: disable=global-statement
working_dir = Path('/tmp/tribler/experiment/popularity_community/initial_filling/.Tribler')
interval_in_sec = arguments.interval
output_file_path = arguments.file
Expand Down
7 changes: 5 additions & 2 deletions experiment/tunnel_community/speed_test_exit.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ async def on_tribler_started(self):
self._graceful_shutdown()

async def run_speed_test(self, direction, circuit, index, size):
task = asyncio.create_task(run_speed_test(TunnelsComponent.instance().community,
direction, circuit, window=50, size=size))
request_size = 0 if direction == ORIGINATOR else 1024
response_size = 1024 if direction == ORIGINATOR else 0
num_requests = size * 1024
task = asyncio.create_task(run_speed_test(TunnelsComponent.instance().community, circuit, request_size,
response_size, num_requests, window=50))
results = []
prev_transferred = ts = 0
while not task.done():
Expand Down

0 comments on commit acc2daf

Please sign in to comment.