From b0a27eb73ac56a53be242188781b1b0f4f61d61f Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 23 Oct 2010 23:34:32 +0000 Subject: [PATCH] --- magick/resource.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/magick/resource.c b/magick/resource.c index 60f091519..deb89d3a8 100644 --- a/magick/resource.c +++ b/magick/resource.c @@ -102,7 +102,7 @@ static ResourceInfo MagickULLConstant(0), MagickULLConstant(0), MagickULLConstant(0), - MagickULLConstant(2048)*1024*1024, + MagickULLConstant(1536)*1024*1024/sizeof(PixelPacket), MagickULLConstant(1536)*1024*1024, MagickULLConstant(3072)*1024*1024, MagickResourceInfinity, @@ -921,9 +921,9 @@ MagickExport MagickBooleanType ResourceComponentGenesis(void) #if defined(PixelCacheThreshold) memory=PixelCacheThreshold; #endif - (void) SetMagickResourceLimit(AreaResource,6UL*memory/4UL); - (void) SetMagickResourceLimit(MemoryResource,1UL*memory); - (void) SetMagickResourceLimit(MapResource,2UL*memory); + (void) SetMagickResourceLimit(AreaResource,memory/sizeof(PixelPacket)); + (void) SetMagickResourceLimit(MemoryResource,memory); + (void) SetMagickResourceLimit(MapResource,2*memory); limit=GetEnvironmentValue("MAGICK_AREA_LIMIT"); if (limit == (char *) NULL) limit=GetPolicyValue("area"); -- 2.40.0