mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-12-04 13:50:05 -05:00
Added path request frequency monitoring support to interfaces subsystem
This commit is contained in:
parent
ef1ecb35e1
commit
8ed31d0dc8
6 changed files with 157 additions and 10 deletions
|
|
@ -488,6 +488,12 @@ class LocalServerInterface(Interface):
|
|||
def sent_announce(self, from_spawned=False):
|
||||
if from_spawned: self.oa_freq_deque.append(time.time())
|
||||
|
||||
def received_path_request(self, from_spawned=False):
|
||||
if from_spawned: self.ip_freq_deque.append(time.time())
|
||||
|
||||
def sent_path_request(self, from_spawned=False):
|
||||
if from_spawned: self.op_freq_deque.append(time.time())
|
||||
|
||||
def __str__(self):
|
||||
if self.socket_path: return "Shared Instance["+str(self.socket_path.replace("\0", ""))+"]"
|
||||
else: return "Shared Instance["+str(self.bind_port)+"]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue