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