Fix is_late

This commit is contained in:
blank X 2021-01-14 09:56:21 +07:00
parent 324bc609ec
commit 960f2527b2
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ async def video_worker():
async def _video_worker(): async def _video_worker():
while True: while True:
video_json, start_time, first_try_live = await video_queue.get() video_json, start_time, first_try_live = await video_queue.get()
is_late = first_try_live or (Decimal(time.time()) - Decimal(start_time)) < 5 is_late = first_try_live or (Decimal(time.time()) - Decimal(start_time)) > 5
command = ['ffmpeg'] command = ['ffmpeg']
tempdir_obj = tempfile.TemporaryDirectory(dir='.') tempdir_obj = tempfile.TemporaryDirectory(dir='.')
try: try: