From e228d5ffbe31be9f5b42dc584e1afa4c0d880247 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 4 Jul 2003 08:11:28 +0000 Subject: [PATCH] Modified to correctly determine alarm state. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@590 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmx10.pl.z | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmx10.pl.z b/scripts/zmx10.pl.z index 74202a732..92fa39b65 100755 --- a/scripts/zmx10.pl.z +++ b/scripts/zmx10.pl.z @@ -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;