diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 68550f898..06f1d37b4 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -657,9 +657,9 @@ void Event::AddFrame(Image *image, struct timeval timestamp, int score, Image *a // The idea is to write out 1/sec frame_data.push(new Frame(id, frames, frame_type, timestamp, delta_time, score)); - if ( write_to_db || ( monitor->get_fps() && (frame_data.size() > (unsigned int)monitor->get_fps())) ) { - Debug(1, "Adding %d frames to DB because write_to_db:%d or frames > fps %d", - frame_data.size(), write_to_db, (unsigned int)monitor->get_fps()); + if ( write_to_db || ( monitor->get_fps() && (frame_data.size() > monitor->get_fps())) ) { + Debug(1, "Adding %d frames to DB because write_to_db:%d or frames > analysis fps %f", + frame_data.size(), write_to_db, monitor->get_fps()); WriteDbFrames(); last_db_frame = frames; Debug(1, "Adding %d frames to DB, done", frame_data.size());