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

This commit is contained in:
toperichvania 2025-02-27 16:28:53 +01:00 committed by p-boon
parent 8819774e3a
commit 4f9d3dcacd

View File

@ -481,7 +481,7 @@ class RecordingMaintainer(threading.Thread):
# get the segment size of the cache file # get the segment size of the cache file
# file without faststart is same size # file without faststart is same size
segment_size = round( 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: except OSError:
segment_size = 0 segment_size = 0