mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 13:40:19 +00:00
Added additional information to interface stats
This commit is contained in:
parent
cdee3b6191
commit
42319a092d
@ -1258,6 +1258,10 @@ class Reticulum:
|
|||||||
else:
|
else:
|
||||||
ifstats["clients"] = None
|
ifstats["clients"] = None
|
||||||
|
|
||||||
|
if hasattr(interface, "parent_interface") and interface.parent_interface != None:
|
||||||
|
ifstats["parent_interface_name"] = str(interface.parent_interface)
|
||||||
|
ifstats["parent_interface_hash"] = interface.parent_interface.get_hash()
|
||||||
|
|
||||||
if hasattr(interface, "i2p") and hasattr(interface, "connectable"):
|
if hasattr(interface, "i2p") and hasattr(interface, "connectable"):
|
||||||
if interface.connectable:
|
if interface.connectable:
|
||||||
ifstats["i2p_connectable"] = True
|
ifstats["i2p_connectable"] = True
|
||||||
@ -1323,6 +1327,9 @@ class Reticulum:
|
|||||||
ifstats["announce_queue"] = None
|
ifstats["announce_queue"] = None
|
||||||
|
|
||||||
ifstats["name"] = str(interface)
|
ifstats["name"] = str(interface)
|
||||||
|
ifstats["short_name"] = str(interface.name)
|
||||||
|
ifstats["hash"] = interface.get_hash()
|
||||||
|
ifstats["type"] = str(type(interface).__name__)
|
||||||
ifstats["rxb"] = interface.rxb
|
ifstats["rxb"] = interface.rxb
|
||||||
ifstats["txb"] = interface.txb
|
ifstats["txb"] = interface.txb
|
||||||
ifstats["incoming_announce_frequency"] = interface.incoming_announce_frequency()
|
ifstats["incoming_announce_frequency"] = interface.incoming_announce_frequency()
|
||||||
|
Loading…
Reference in New Issue
Block a user