mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Round segment size
This commit is contained in:
parent
aa48e7f054
commit
d7ef31d05e
@ -285,7 +285,7 @@ class RecordingMaintainer(threading.Thread):
|
||||
)
|
||||
|
||||
try:
|
||||
segment_size = float(os.path.getsize(file_path)) / 1000000
|
||||
segment_size = round(float(os.path.getsize(file_path)) / 1000000, 1)
|
||||
except OSError:
|
||||
segment_size = 0
|
||||
|
||||
|
||||
@ -148,7 +148,7 @@ class StorageMaintainer(threading.Thread):
|
||||
|
||||
def run(self):
|
||||
# Check storage consumption every 5 minutes
|
||||
while not self.stop_event.wait(20):
|
||||
while not self.stop_event.wait(300):
|
||||
|
||||
if not self.avg_segment_sizes:
|
||||
self.calculate_camera_segment_sizes()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user