Modified to correctly determine alarm state.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@590 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2003-07-04 08:11:28 +00:00
parent 9c3bf369c0
commit e228d5ffbe
1 changed files with 1 additions and 1 deletions

View File

@ -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;