mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Fix size parsing
This commit is contained in:
parent
a50534ebc6
commit
23a32f9898
@ -288,6 +288,11 @@ class RecordingMaintainer(threading.Thread):
|
|||||||
except OSError:
|
except OSError:
|
||||||
segment_size = -1
|
segment_size = -1
|
||||||
|
|
||||||
|
try:
|
||||||
|
segment_size = float(os.path.getsize(file_path)) / 1000
|
||||||
|
except OSError:
|
||||||
|
segment_size = -1
|
||||||
|
|
||||||
rand_id = "".join(
|
rand_id = "".join(
|
||||||
random.choices(string.ascii_lowercase + string.digits, k=6)
|
random.choices(string.ascii_lowercase + string.digits, k=6)
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user