From feabf475df77fd1b26e2f40ebdc8d5f17ef8608c Mon Sep 17 00:00:00 2001 From: stan Date: Sat, 5 Jul 2003 20:40:38 +0000 Subject: [PATCH] Added last image capture time into shared memory. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@607 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_monitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zm_monitor.h b/src/zm_monitor.h index 899411467..62b2b6d0d 100644 --- a/src/zm_monitor.h +++ b/src/zm_monitor.h @@ -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++;