any size discrepancy is caused for bailing

pull/501/head
Isaac Connor 2014-08-01 11:27:51 -04:00
parent cca01dc357
commit a87f75eee0
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ sub zmMemAttach( $$ )
if ( !defined($monitor->{MMapAddr}) )
{
my $mmap_file = $Config{ZM_PATH_MAP}."/zm.mmap.".$monitor->{Id};
if ( -s $mmap_file < $size ) {
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 );
}