Skip to content

Commit

Permalink
do this one too
Browse files Browse the repository at this point in the history
  • Loading branch information
connortechnology committed Dec 17, 2013
1 parent 1d338ed commit 2ced76c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ZoneMinder/lib/ZoneMinder/Memory/Mapped.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sub zmMemAttach( $$ )
my $size = shift;
if ( !defined($monitor->{MMapAddr}) )
{
my $mmap_file = ZM_PATH_MAP."/zm.mmap.".$monitor->{Id};
my $mmap_file = $Config{ZM_PATH_MAP}."/zm.mmap.".$monitor->{Id};
if ( -s $mmap_file < $size ) {
Error( sprintf( "Memory map file '%s' should have been %d but was instead %d", $mmap_file, $size, -s $mmap_file ) );
return ( undef );
Expand Down Expand Up @@ -160,7 +160,7 @@ sub zmMemPut( $$$$ )
sub zmMemClean
{
Debug( "Removing memory map files\n" );
my $mapPath = ZM_PATH_MAP."/zm.mmap.*";
my $mapPath = $Config{ZM_PATH_MAP}."/zm.mmap.*";
foreach my $mapFile( glob( $mapPath ) )
{
( $mapFile ) = $mapFile =~ /^(.+)$/;
Expand Down

0 comments on commit 2ced76c

Please sign in to comment.