Skip to content

Commit

Permalink
Return none instead of empty
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Nov 2, 2022
1 parent 71655c8 commit 11c7219
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frigate/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]:
# RPi v4l2m2m is currently not able to get usage stats
pass

return stats
if stats:
return stats

return None


def stats_snapshot(
Expand Down

0 comments on commit 11c7219

Please sign in to comment.