Skip to content

NVR with realtime local object detection for IP cameras

Round the timestamp value read from .vacuum file to prevent potential errors caused by float values (#6800)

Sergey Krashevich3efa77f30220
diff --git a/frigate/app.py b/frigate/app.py
index 02e657ce15..9d85f461ef 100644
--- a/frigate/app.py
+++ b/frigate/app.py
@@ -196,7 +196,7 @@ class FrigateApp:
if os.path.exists(f"{CONFIG_DIR}/.vacuum"):
with open(f"{CONFIG_DIR}/.vacuum") as f:
try:
- timestamp = int(f.readline())
+ timestamp = round(float(f.readline()))
except Exception:
timestamp = 0