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
This commit is contained in:
parent
03fcfdbaab
commit
bc405546b6
|
@ -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 ) ));
|
||||
|
|
Loading…
Reference in New Issue