Filter status network to enp interfaces
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user