mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Use only the values
This commit is contained in:
parent
41ac558642
commit
615135d624
@ -85,7 +85,7 @@ def get_temperatures() -> dict[str, float]:
|
|||||||
|
|
||||||
def get_gpu_stats(config: FrigateConfig) -> dict[str, str]:
|
def get_gpu_stats(config: FrigateConfig) -> dict[str, str]:
|
||||||
"""Parse GPUs from hwaccel args and use for stats."""
|
"""Parse GPUs from hwaccel args and use for stats."""
|
||||||
hwaccel_args = set(map(lambda camera: camera.ffmpeg.hwaccel_args, config.cameras))
|
hwaccel_args = set(map(lambda camera: camera.ffmpeg.hwaccel_args, config.cameras.values()))
|
||||||
stats: dict[str, dict] = {}
|
stats: dict[str, dict] = {}
|
||||||
|
|
||||||
for args in hwaccel_args:
|
for args in hwaccel_args:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user