Skip to content

NVR with realtime local object detection for IP cameras

Fix incorrect storage usage per camera (#16825) (#16851)

toperichvania2b7b5e3f08e9
diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py
index faa41f75fd..1cabbfddae 100644
--- a/frigate/record/maintainer.py
+++ b/frigate/record/maintainer.py
@@ -473,7 +473,7 @@ class RecordingMaintainer(threading.Thread):
# get the segment size of the cache file
# file without faststart is same size
segment_size = round(
- float(os.path.getsize(cache_path)) / pow(2, 20), 1
+ float(os.path.getsize(cache_path)) / pow(2, 20), 2
)
except OSError:
segment_size = 0