forked from Github/frigate
ensure div by zero is replaced with 0 after normalization (#10528)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user