Compare commits

...

2 Commits

Author SHA1 Message Date
Mark Qvist
27c5af3bbc Updated manual 2023-09-22 10:07:10 +02:00
Mark Qvist
5872108da3 Added timeout to rnprobe 2023-09-22 10:04:37 +02:00
3 changed files with 40 additions and 36 deletions

View File

@ -110,7 +110,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v
print("\rSent "+str(size)+" byte probe to "+RNS.prettyhexrep(destination_hash)+more+" ", end=" ")
i = 0
while not receipt.status == RNS.PacketReceipt.DELIVERED:
while receipt.status == RNS.PacketReceipt.SENT:
time.sleep(0.1)
print(("\b\b"+syms[i]+" "), end="")
sys.stdout.flush()
@ -119,6 +119,7 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v
print("\b\b ")
sys.stdout.flush()
if receipt.status == RNS.PacketReceipt.DELIVERED:
hops = RNS.Transport.hops_to(destination_hash)
if hops != 1:
ms = "s"
@ -160,6 +161,9 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v
reception_stats
)
else:
print("Probe timed out")
def main():

Binary file not shown.

Binary file not shown.