Merge branch 'zma_to_thread' of github.com:connortechnology/ZoneMinder into zma_to_thread
This commit is contained in:
commit
5ca7871510
|
@ -887,11 +887,7 @@ INSERT INTO MontageLayouts (`Name`,`Positions`) VALUES ('4 Wide', '{ "default":{
|
|||
INSERT INTO MontageLayouts (`Name`,`Positions`) VALUES ('5 Wide', '{ "default":{"float":"left", "width":"19%","left":"0px","right":"0px","top":"0px","bottom":"0px"} }' );
|
||||
|
||||
-- We generally don't alter triggers, we drop and re-create them, so let's keep them in a separate file that we can just source in update scripts.
|
||||
<<<<<<< HEAD
|
||||
source triggers.sql
|
||||
=======
|
||||
source @ZM_PATH_DATA@/db/triggers.sql
|
||||
>>>>>>> storageareas
|
||||
--
|
||||
-- Apply the initial configuration
|
||||
--
|
||||
|
|
|
@ -1262,6 +1262,7 @@ void Monitor::CheckAction() {
|
|||
void Monitor::UpdateAnalysisFPS() {
|
||||
struct timeval now;
|
||||
gettimeofday( &now, NULL );
|
||||
if ( now.tv_sec != last_analysis_fps_time ) {
|
||||
if ( analysis_image_count && fps_report_interval && !(analysis_image_count%fps_report_interval) ) {
|
||||
double new_analysis_fps = double(fps_report_interval)/(now.tv_sec - last_analysis_fps_time);
|
||||
Info("%s: %d - Analysing at %.2f fps", name, image_count, new_analysis_fps);
|
||||
|
@ -1278,6 +1279,7 @@ void Monitor::UpdateAnalysisFPS() {
|
|||
}
|
||||
last_analysis_fps_time = now.tv_sec;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Would be nice if this JUST did analysis
|
||||
|
@ -1307,17 +1309,19 @@ bool Monitor::Analyse() {
|
|||
Debug(2, "Analysis index (%d), last_Write(%d)", index, shared_data->last_write_index);
|
||||
packets_processed += 1;
|
||||
|
||||
struct timeval *timestamp = snap->timestamp;
|
||||
Image *snap_image = snap->image;
|
||||
if ( snap->image_index == -1 ) {
|
||||
snap->unlock();
|
||||
Debug(2, "skipping because audio");
|
||||
// We want to skip, but if we return, we may sleep.
|
||||
//
|
||||
if ( ! packetqueue->increment_analysis_it() ) {
|
||||
Debug(2, "No more packets to analyse");
|
||||
return false;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
struct timeval *timestamp = snap->timestamp;
|
||||
Image *snap_image = snap->image;
|
||||
|
||||
// signal is set by capture
|
||||
bool signal = shared_data->signal;
|
||||
|
@ -2210,6 +2214,7 @@ int Monitor::Capture() {
|
|||
return 0;
|
||||
}
|
||||
} else {
|
||||
Debug(4, "Capturing");
|
||||
captureResult = camera->Capture(*packet);
|
||||
gettimeofday( packet->timestamp, NULL );
|
||||
if ( captureResult < 0 ) {
|
||||
|
|
Loading…
Reference in New Issue