fix merge from master, make it compile

This commit is contained in:
Isaac Connor 2020-07-21 18:48:45 -04:00
parent 869860bb26
commit d23dc42981
3 changed files with 5 additions and 3 deletions

View File

@ -670,7 +670,7 @@ 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 || (frame_data.size() > (int)monitor->get_fps()) ) {
if ( write_to_db || (frame_data.size() > (int)monitor->get_capture_fps()) ) {
Debug(1, "Adding %d frames to DB", frame_data.size());
WriteDbFrames();
last_db_frame = frames;

View File

@ -556,8 +556,8 @@ public:
#if HAVE_LIBAVCODEC
//void StreamMpeg( const char *format, int scale=100, int maxfps=10, int bitrate=100000 );
#endif // HAVE_LIBAVCODEC
double get_fps( ) const {
return fps;
double get_capture_fps( ) const {
return capture_fps;
}
};

View File

@ -235,6 +235,8 @@ int main(int argc, char *argv[]) {
int result = 0;
int prime_capture_log_count = 0;
while ( !zm_terminate ) {
result = 0;
static char sql[ZM_SQL_SML_BUFSIZ];