Fixed ingress control producer comprehension at mid-watermark using incorrect variable name for interface type check. By JRG <fccab3ba809f89d870d5b8b2e2cdbad1> (commit a790cb02152f80d7cdb9677c90672905b8b62c44)

This commit is contained in:
Mark Qvist 2026-09-29 11:48:56 +02:00
parent f25b31702b
commit 6c9d717cd6
No known key found for this signature in database

View file

@ -509,7 +509,7 @@ class BackboneInterface(Interface):
interfaces = list(BackboneInterface.spawned_interface_filenos.values())
if q_depth > BackboneInterface.DP_IC_MID_WM:
producers = [iface for iface in interfaces if iface.dp_ingress_packets > 0 and not isinstance(interface, RNS.Interfaces.LocalInterface.LocalClientInterface)]
producers = [iface for iface in interfaces if iface.dp_ingress_packets > 0 and not isinstance(iface, RNS.Interfaces.LocalInterface.LocalClientInterface)]
if producers:
producers.sort(key=lambda p: p.dp_ingress_packets, reverse=True)
selected = producers[0]