mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-31 10:50:00 -04:00
Event::Close() (zmeventtool.pl close) took the end of an event only from its Frames rows and refused events that had none. zmc writes Frames rows in batches and updates the event row's Length, Frames and scores with each batch, so an event whose zmc was killed in its first seconds has no Frames rows, and either side can be ahead of the other. Take Length, Frames, AlarmFrames, TotScore and MaxScore as the larger of the event row and the Frames rows; EndDateTime follows the Length that was used. The name and Notes are written as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>