mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Don't read interfaces if none are set
This commit is contained in:
parent
b4393028ba
commit
050a9ebf1b
@ -143,6 +143,9 @@ def get_cpu_stats() -> dict[str, dict]:
|
|||||||
|
|
||||||
|
|
||||||
def get_physical_interfaces(interfaces) -> list:
|
def get_physical_interfaces(interfaces) -> list:
|
||||||
|
if not interfaces:
|
||||||
|
return []
|
||||||
|
|
||||||
with open("/proc/net/dev", "r") as file:
|
with open("/proc/net/dev", "r") as file:
|
||||||
lines = file.readlines()
|
lines = file.readlines()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user