mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
ensure div by zero is replaced with 0 after normalization (#10528)
This commit is contained in:
parent
d249e5b27f
commit
3bd0ad63b4
@ -400,7 +400,7 @@ def motion_activity():
|
|||||||
(part["motion"] - part["motion"].min())
|
(part["motion"] - part["motion"].min())
|
||||||
/ (part["motion"].max() - part["motion"].min())
|
/ (part["motion"].max() - part["motion"].min())
|
||||||
* 100
|
* 100
|
||||||
)
|
).fillna(0.0)
|
||||||
|
|
||||||
# change types for output
|
# change types for output
|
||||||
df.index = df.index.astype(int) // (10**9)
|
df.index = df.index.astype(int) // (10**9)
|
||||||
|
Loading…
Reference in New Issue
Block a user