Skip to content

NVR with realtime local object detection for IP cameras

ensure div by zero is replaced with 0 after normalization (#10528)

Josh Hawkins3bd0ad63b40e
diff --git a/frigate/api/review.py b/frigate/api/review.py
index 21eed52977..0ca138e53e 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)