mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Catch RPi args as well
This commit is contained in:
parent
96b970430f
commit
3180dfd617
@ -111,6 +111,12 @@ def get_gpu_stats(config: FrigateConfig) -> dict[str, str]:
|
|||||||
gpu["name"] = "intel-vaapi"
|
gpu["name"] = "intel-vaapi"
|
||||||
gpu["usage"] = "100"
|
gpu["usage"] = "100"
|
||||||
gpu["memory"] = "200"
|
gpu["memory"] = "200"
|
||||||
|
elif "v4l2m2m" in args:
|
||||||
|
gpu["name"] = "RPi"
|
||||||
|
|
||||||
|
stats["name"] = "name"
|
||||||
|
|
||||||
|
return stats
|
||||||
|
|
||||||
|
|
||||||
def stats_snapshot(
|
def stats_snapshot(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user