Added MTU output to rnstatus

This commit is contained in:
Mark Qvist 2026-08-23 18:01:24 +02:00
parent 88c629e3ad
commit 84597f3186
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -1524,6 +1524,7 @@ class Reticulum:
ifstats["short_name"] = str(interface.name)
ifstats["hash"] = interface.get_hash()
ifstats["type"] = str(type(interface).__name__)
ifstats["mtu"] = interface.HW_MTU
ifstats["rxb"] = interface.rxb
ifstats["txb"] = interface.txb
ifstats["arxb"] = interface.arxb

View file

@ -501,7 +501,7 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
print(f" Mode : {modestr}")
if "bitrate" in ifstat and ifstat["bitrate"] != None:
print(" Rate : {ss}".format(ss=speed_str(ifstat["bitrate"])))
print(f" Rate : {speed_str(ifstat['bitrate'])}, MTU {ifstat['mtu']}")
if "noise_floor" in ifstat:
if not "interference" in ifstat: nstr = ""