From 67c468884f3d8681a0aff535197bca6878a03298 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 13 Sep 2023 20:07:53 +0200 Subject: [PATCH] Added channel load and airtime stats to rnstatus output --- RNS/Utilities/rnstatus.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index 187aa2f..67e74eb 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -146,6 +146,12 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None,json=F if "bitrate" in ifstat and ifstat["bitrate"] != None: print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"]))) + + if "airtime_short" in ifstat and "airtime_long" in ifstat: + print(" Airtime : {atl}% (1h), {ats}% (15s)".format(ats=str(ifstat["airtime_short"]),atl=str(ifstat["airtime_long"]))) + + if "channel_load_short" in ifstat and "channel_load_long" in ifstat: + print(" Ch.Load : {atl}% (1h), {ats}% (15s)".format(ats=str(ifstat["channel_load_short"]),atl=str(ifstat["channel_load_long"]))) if "peers" in ifstat and ifstat["peers"] != None: print(" Peers : {np} reachable".format(np=ifstat["peers"]))