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