Fixed date time filter problem and handles missing shared memory better.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@634 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
1ceb9cc9b7
commit
8ffd642e06
|
@ -137,7 +137,7 @@ Parameters are :-
|
|||
sub strtotime
|
||||
{
|
||||
my $date_str = shift;
|
||||
return( UnixDate( $date_str, '%s' ) );
|
||||
return( localtime(UnixDate( $date_str, '%s' )) );
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -199,7 +199,7 @@ my $shmid = shmget( $key, $size, 0 ) || die( "Can't get shared memory id: $!" );
|
|||
|
||||
while( 1 )
|
||||
{
|
||||
next if ( !shmread( $shmid, $last_event_id, 24, 4 ) );
|
||||
shmread( $shmid, $last_event_id, 24, 4 ) or die( "Can't read from shared memory: $!" );
|
||||
|
||||
$last_event_id = unpack( "l", $last_event_id );
|
||||
|
||||
|
|
Loading…
Reference in New Issue