RNS::Rnstatus
Class methods
Format the status display for a single interface stat. Returns the formatted string (multiple lines).
format_status(stats : TransportStats, dispall : Bool = false, name_filter : String | Nil = nil, astats : Bool = false, lstats : Bool = false, link_count : Int32 | Nil = nil, sorting : String | Nil = nil, sort_reverse : Bool = false, traffic_totals : Bool = false) : String
Format the full status output matching Python rnstatus program_setup(). Returns formatted string.
get_interface_stats
Collect interface stats from the running Transport instance. Matches Python Reticulum.get_interface_stats() behavior.
interface_stat_to_hash(ifstat : InterfaceStat) : Hash(String, String | Int64 | Int32 | Float64 | Bool | Nil)
Convert an InterfaceStat to a JSON-compatible Hash.
Parse command-line arguments matching Python argparse behavior.
Format a byte count with appropriate unit suffix. Matches rnstatus.py size_str() exactly.
sort_interfaces(interfaces : Array(InterfaceStat), sorting : String | Nil, sort_reverse : Bool) : Array(InterfaceStat)
Sort interfaces by the given criterion.
Format a speed value as a human-readable string with unit suffix. Matches rnstatus.py speed_str() exactly.