Sleep less when waiting for zmc to capture an image. Return camera in getCamera

This commit is contained in:
Isaac Connor 2019-02-19 09:47:04 -05:00
parent 4b3519c84a
commit f2e7ec7e36
1 changed files with 2 additions and 1 deletions

View File

@ -735,6 +735,7 @@ Camera * Monitor::getCamera() {
} // end if type
camera->setMonitor(this);
return camera;
} // end Monitor::getCamera
Monitor *Monitor::Load(unsigned int p_id, bool load_zones, Purpose purpose) {
@ -2708,7 +2709,7 @@ void Monitor::get_ref_image() {
) {
Info("Waiting for capture daemon lastwriteindex(%d) lastwritetime(%d)",
shared_data->last_write_index, shared_data->last_write_time);
usleep(50000);
usleep(10000);
}
if ( zm_terminate )
return;