mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Formatting
This commit is contained in:
parent
c3387effe0
commit
384595f5e6
@ -306,9 +306,7 @@ class FrigateApp:
|
||||
self.recording_cleanup.start()
|
||||
|
||||
def start_storage_maintainer(self) -> None:
|
||||
self.storage_maintainer = StorageMaintainer(
|
||||
self.config, self.stop_event
|
||||
)
|
||||
self.storage_maintainer = StorageMaintainer(self.config, self.stop_event)
|
||||
self.storage_maintainer.start()
|
||||
|
||||
def start_stats_emitter(self) -> None:
|
||||
|
||||
@ -34,10 +34,14 @@ class StorageMaintainer(threading.Thread):
|
||||
.scalar(),
|
||||
2,
|
||||
)
|
||||
segment_duration = int(Recordings.select(Recordings.duration).where(Recordings.camera == camera).scalar())
|
||||
segment_duration = int(
|
||||
Recordings.select(Recordings.duration)
|
||||
.where(Recordings.camera == camera)
|
||||
.scalar()
|
||||
)
|
||||
self.avg_segment_sizes[camera] = {
|
||||
"segment": avg_segment_size,
|
||||
"hour": (3600 / segment_duration) * avg_segment_size
|
||||
"hour": (3600 / segment_duration) * avg_segment_size,
|
||||
}
|
||||
|
||||
def run(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user