mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
use ceil instead of round for recording snapshot
This commit is contained in:
parent
4aa493b96c
commit
a062f268eb
@ -2,6 +2,7 @@
|
||||
|
||||
import glob
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
import subprocess as sp
|
||||
import time
|
||||
@ -262,7 +263,7 @@ def get_snapshot_from_recording(
|
||||
except DoesNotExist:
|
||||
# try again with a rounded frame time as it may be between
|
||||
# the rounded segment start time
|
||||
frame_time = round(frame_time)
|
||||
frame_time = math.ceil(frame_time)
|
||||
try:
|
||||
recording = (
|
||||
Recordings.select(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user