mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35: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]:
|
||||
"""Parse GPUs from hwaccel args and use for stats."""
|
||||
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)
|
||||
stats: dict[str, dict] = {}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user