Round segment size

This commit is contained in:
Nick Mowen 2022-09-25 11:30:09 -06:00
parent aa48e7f054
commit d7ef31d05e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()