Aim to do db updates every 5 seconds instead of 1 second

This commit is contained in:
Isaac Connor 2021-11-29 18:32:48 -05:00
parent 11a140d48e
commit c927ef4b52
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ void Event::AddFrame(Image *image,
or or
(frame_type == BULK) (frame_type == BULK)
or or
(fps and (frame_data.size() > fps))) { (fps and (frame_data.size() > 5*fps))) {
Debug(1, "Adding %zu frames to DB because write_to_db:%d or frames > analysis fps %f or BULK(%d)", Debug(1, "Adding %zu frames to DB because write_to_db:%d or frames > analysis fps %f or BULK(%d)",
frame_data.size(), write_to_db, fps, (frame_type == BULK)); frame_data.size(), write_to_db, fps, (frame_type == BULK));
WriteDbFrames(); WriteDbFrames();