From 1855f9927fe23990c2da8d49c1409b85b1b7ef8f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 11 Nov 2026 20:04:05 +0100 Subject: [PATCH] Cleanup --- RNS/Transport.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 40982529..9d3843e2 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1805,18 +1805,12 @@ class Transport: timer.start() if RNS.sl(RNS.LOG_EXTREME): - if wait_time < 1: wait_time_str = str(round(wait_time*1000,2))+"ms" - else: wait_time_str = str(round(wait_time*1,2))+"s" - ql_str = str(len(interface.announce_queue)) - RNS.log("Added announce to queue (height "+ql_str+") on "+str(interface)+" for processing in "+wait_time_str, RNS.LOG_EXTREME) + RNS.log(f"Added announce to queue (height {len(interface.announce_queue)}) on {interface} for processing in {RNS.prettyshorttime(wait_time, compact=True, tight=True)}", RNS.LOG_EXTREME) else: if RNS.sl(RNS.LOG_EXTREME): wait_time = max(interface.announce_allowed_at - time.time(), 0) - if wait_time < 1: wait_time_str = str(round(wait_time*1000,2))+"ms" - else: wait_time_str = str(round(wait_time*1,2))+"s" - ql_str = str(len(interface.announce_queue)) - RNS.log("Added announce to queue (height "+ql_str+") on "+str(interface)+" for processing in "+wait_time_str, RNS.LOG_EXTREME) + RNS.log(f"Added announce to queue (height {len(interface.announce_queue)}) on {interface} for processing in {RNS.prettyshorttime(wait_time, compact=True, tight=True)}", RNS.LOG_EXTREME) else: pass