Modified to correctly determine alarm state.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@590 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
9c3bf369c0
commit
e228d5ffbe
|
@ -301,7 +301,7 @@ sub runServer
|
|||
{
|
||||
my $monitor = $monitor_hash{$monitor_id};
|
||||
my $state;
|
||||
if ( !shmread( $monitor->{ShmId}, $state, 0, 4 ) )
|
||||
if ( !shmread( $monitor->{ShmId}, $state, 4, 4 ) )
|
||||
{
|
||||
print( "Can't read from shared memory: $!\n" );
|
||||
$reload = !undef;
|
||||
|
|
Loading…
Reference in New Issue