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