mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2025-02-23 01:39:52 +01:00
Fix propagation node detector in daemon mode
This commit is contained in:
parent
5b61885bea
commit
ad32349e2c
@ -64,9 +64,14 @@ class PropagationNodeDetector():
|
|||||||
# age = 0
|
# age = 0
|
||||||
pass
|
pass
|
||||||
|
|
||||||
link_stats = {"rssi": self.owner_app.sideband.reticulum.get_packet_rssi(announce_packet_hash),
|
if self.owner_app != None:
|
||||||
"snr": self.owner_app.sideband.reticulum.get_packet_snr(announce_packet_hash),
|
stat_endpoint = self.owner_app.sideband
|
||||||
"q": self.owner_app.sideband.reticulum.get_packet_q(announce_packet_hash)}
|
else:
|
||||||
|
stat_endpoint = self.owner
|
||||||
|
|
||||||
|
link_stats = {"rssi": stat_endpoint.reticulum.get_packet_rssi(announce_packet_hash),
|
||||||
|
"snr": stat_endpoint.reticulum.get_packet_snr(announce_packet_hash),
|
||||||
|
"q": stat_endpoint.reticulum.get_packet_q(announce_packet_hash)}
|
||||||
|
|
||||||
RNS.log("Detected active propagation node "+RNS.prettyhexrep(destination_hash)+" emission "+str(age)+" seconds ago, "+str(hops)+" hops away")
|
RNS.log("Detected active propagation node "+RNS.prettyhexrep(destination_hash)+" emission "+str(age)+" seconds ago, "+str(hops)+" hops away")
|
||||||
self.owner.log_announce(destination_hash, app_data, dest_type=PropagationNodeDetector.aspect_filter, link_stats=link_stats)
|
self.owner.log_announce(destination_hash, app_data, dest_type=PropagationNodeDetector.aspect_filter, link_stats=link_stats)
|
||||||
@ -4684,7 +4689,7 @@ class SidebandCore():
|
|||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
self.setstate("core.started", True)
|
self.setstate("core.started", True)
|
||||||
RNS.log("Sideband Core "+str(self)+" "+str(self.version_str)+" started")
|
RNS.log("Sideband Core "+str(self)+" "+str(self.version_str)+"started")
|
||||||
|
|
||||||
def stop_webshare(self):
|
def stop_webshare(self):
|
||||||
if self.webshare_server != None:
|
if self.webshare_server != None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user