Issue #3197 Add RECORD to Event_Close_Mode time

This commit is contained in:
SirLouen 2021-03-20 20:02:52 +01:00
parent b71db319a0
commit 33f98a0d40
1 changed files with 1 additions and 1 deletions

View File

@ -1979,7 +1979,7 @@ bool Monitor::Analyse() {
Debug(2, "Have event %" PRIu64 " in mocord", event->Id());
if (section_length
&& ( ( timestamp->tv_sec - video_store_data->recording.tv_sec ) >= section_length )
&& ( (function == MOCORD && (event_close_mode != CLOSE_TIME)) || ! ( timestamp->tv_sec % section_length ) )
&& ( ( ( (function == MOCORD) || (function == RECORD) ) && (event_close_mode != CLOSE_TIME)) || ! ( timestamp->tv_sec % section_length ) )
) {
Info("%s: %03d - Closing event %" PRIu64 ", section end forced %d - %d = %d >= %d",