Filter status network to enp interfaces

This commit is contained in:
2026-02-08 04:30:57 +03:00
parent 65682ca162
commit 5da7125fbb

View File

@@ -93,6 +93,8 @@ async def _network_snapshot(interval: float = 1.0) -> str:
for nic, s in end.items(): for nic, s in end.items():
if nic.startswith("lo"): if nic.startswith("lo"):
continue continue
if not nic.startswith("enp"):
continue
e = start.get(nic) e = start.get(nic)
if not e: if not e:
continue continue