From 9c166936ad00194c304d3e2e856399ccc9b6905d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 6 May 2026 19:06:16 +0200 Subject: [PATCH] Added outbound announce frequency per client display to rnstatus --- RNS/Utilities/rnstatus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index 9ee21d00..c65c760f 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -552,13 +552,15 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json= if astats and "incoming_announce_frequency" in ifstat and ifstat["incoming_announce_frequency"] != None: oaf = RNS.prettyfrequency(ifstat["outgoing_announce_frequency"])+"↑" iaf = RNS.prettyfrequency(ifstat["incoming_announce_frequency"])+"↓" + if clients != None and clients > 0: pc_str = f"{RNS.prettyfrequency(ifstat["outgoing_announce_frequency"]/clients)}/c" + else: pc_str = "" strdiff = len(oaf)-len(iaf) if strdiff > 0: iaf += " "*strdiff elif strdiff < 0: oaf += " "*-strdiff strdiff = len(rxb_str)-len(oaf) if strdiff > 0: oaf += " "*strdiff elif strdiff < 0: txb_str += " "*-strdiff; rxb_str += " "*-strdiff - print(f" Announces : {oaf}") + print(f" Announces : {oaf} {pc_str}") print(f" {iaf} {art_str}") rxstat = rxb_str