mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Return none instead of empty
This commit is contained in:
parent
d6e37a3868
commit
ca2733a593
@ -135,7 +135,10 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]:
|
|||||||
# RPi v4l2m2m is currently not able to get usage stats
|
# RPi v4l2m2m is currently not able to get usage stats
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return stats
|
if stats:
|
||||||
|
return stats
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
def stats_snapshot(
|
def stats_snapshot(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user