From 3bd0ad63b40e7de0d78d8cd237522fcbe983372b Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 18 Mar 2024 22:21:09 -0500 Subject: [PATCH] ensure div by zero is replaced with 0 after normalization (#10528) --- frigate/api/review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/api/review.py b/frigate/api/review.py index 21eed5297..0ca138e53 100644 --- a/frigate/api/review.py +++ b/frigate/api/review.py @@ -400,7 +400,7 @@ def motion_activity(): (part["motion"] - part["motion"].min()) / (part["motion"].max() - part["motion"].min()) * 100 - ) + ).fillna(0.0) # change types for output df.index = df.index.astype(int) // (10**9)