From bc405546b6241a5b5a49685877650885a0d4b082 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 16 Oct 2005 21:39:10 +0000 Subject: [PATCH] Bug 166 - Added width and height to Events table. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1513 e3e1d417-86f3-4887-817a-d78f3d33393f --- src/zm_event.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 4f5be7784..243c1b055 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -49,7 +49,7 @@ Event::Event( Monitor *p_monitor, struct timeval p_start_time, const char *event static char start_time_str[32]; strftime( start_time_str, sizeof(start_time_str), "%Y-%m-%d %H:%M:%S", localtime( &start_time.tv_sec ) ); - snprintf( sql, sizeof(sql), "insert into Events ( MonitorId, Name, StartTime, Cause, Notes ) values ( %d, 'New Event', '%s', '%s', '%s' )", monitor->Id(), start_time_str, event_cause, event_text ); + snprintf( sql, sizeof(sql), "insert into Events ( MonitorId, Name, StartTime, Width, Height, Cause, Notes ) values ( %d, 'New Event', '%s', %d, %d, '%s', '%s' )", monitor->Id(), start_time_str, monitor->Width(), monitor->Height(), event_cause, event_text ); if ( mysql_query( &dbconn, sql ) ) { Error(( "Can't insert event: %s", mysql_error( &dbconn ) ));