Skip to content

Commit

Permalink
Updated speedtest example
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Jan 12, 2025
1 parent ceccf31 commit 1d18d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Speedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def link_established(link):

# Inform the user that the server is
# connected
RNS.log("Link established with server,sending...")
rd = os.urandom(RNS.Link.MDU)
RNS.log("Link established with server, sending...")
rd = os.urandom(link.mdu)
started = time.time()
while link.status == RNS.Link.ACTIVE and data_sent < data_cap*1.25:
RNS.Packet(server_link, rd, create_receipt=False).send()
Expand Down

0 comments on commit 1d18d53

Please sign in to comment.