Skip to content

Commit

Permalink
Revise capture interval
Browse files Browse the repository at this point in the history
  • Loading branch information
yihong1120 committed Dec 4, 2024
1 parent 6546664 commit 23de116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ async def process_single_stream(

# Update the capture interval based on processing time
processing_time = time.time() - start_time
streaming_capture.update_capture_interval(int(processing_time) + 1)
streaming_capture.update_capture_interval(1 if int(processing_time) < 1 else int(processing_time) + 1)

# Log the detection results
logger.info(f"{site} - {stream_name}")
Expand Down

0 comments on commit 23de116

Please sign in to comment.