Change SHM_KEY to ZM_SHM_KEY.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@206 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
a92fcfccc7
commit
592817682f
|
@ -35,7 +35,7 @@ use strict;
|
||||||
use constant DB_NAME => "zm";
|
use constant DB_NAME => "zm";
|
||||||
use constant DB_USER => "zmadmin";
|
use constant DB_USER => "zmadmin";
|
||||||
use constant DB_PASS => "zmadminzm";
|
use constant DB_PASS => "zmadminzm";
|
||||||
use constant SHM_KEY => 0x7a6d2000;
|
use constant ZM_SHM_KEY => 0x7a6d2000;
|
||||||
use constant EVENT_PATH => "/data/zm/events";
|
use constant EVENT_PATH => "/data/zm/events";
|
||||||
use constant FILTER_RELOAD_DELAY => 300; # How often filters are reloaded
|
use constant FILTER_RELOAD_DELAY => 300; # How often filters are reloaded
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ my $filters = GetFilters( $monitor );
|
||||||
my $last_action = 0;
|
my $last_action = 0;
|
||||||
|
|
||||||
my $size = 16; # We only need the first 16 bytes really for the last event count
|
my $size = 16; # We only need the first 16 bytes really for the last event count
|
||||||
my $key = SHM_KEY|$monitor;
|
my $key = ZM_SHM_KEY|$monitor;
|
||||||
my $shmid = shmget( $key, $size, 0 ) || die( "Can't get shared memory id: $!" );
|
my $shmid = shmget( $key, $size, 0 ) || die( "Can't get shared memory id: $!" );
|
||||||
|
|
||||||
while( 1 )
|
while( 1 )
|
||||||
|
|
Loading…
Reference in New Issue