Added last image capture time into shared memory.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@607 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-07-05 20:40:38 +00:00
parent c90f7f0765
commit feabf475df
1 changed files with 2 additions and 2 deletions

View File

@ -109,14 +109,13 @@ protected:
ForceState force_state;
int last_write_index;
int last_read_index;
time_t last_image_time;
int last_event;
int action;
int brightness;
int hue;
int colour;
int contrast;
struct timeval *timestamps;
unsigned char *images;
} SharedData;
SharedData *shared_data;
@ -204,6 +203,7 @@ public:
image_buffer[index].image->CopyBuffer( image );
shared_data->last_write_index = index;
shared_data->last_image_time = image_buffer[index].timestamp->tv_sec;
image_count++;