Added transmit buffer, TX drops and stalled status output to rnstatus

This commit is contained in:
Mark Qvist 2026-08-28 13:44:14 +02:00
parent 6e8c976421
commit 9878b18377
No known key found for this signature in database
4 changed files with 38 additions and 43 deletions

View file

@ -148,6 +148,7 @@ class Interface:
self.ec_pr_freq = RNS.Reticulum.get_instance()._default_ec_pr_freq()
self.egress_control = RNS.Reticulum.get_instance()._default_egress_control()
self.held_announces = {}
self.transmit_buffer = None
self.ia_freq_deque = deque(maxlen=Interface.IA_FREQ_SAMPLES)
self.oa_freq_deque = deque(maxlen=Interface.OA_FREQ_SAMPLES)

View file

@ -151,8 +151,7 @@ class TransmitBuffer:
self._head_offset = 0
# Total number of bytes currently buffered, including the
# producer's in-progress coalescing chunk. This value can
# be used for high-water accounting.
# producer's in-progress coalescing chunk.
def __len__(self): return self._tx_total-self._tx_sent
# The number of bytes actually ready to send, and will be