]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 23 Oct 2010 23:34:32 +0000 (23:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 23 Oct 2010 23:34:32 +0000 (23:34 +0000)
magick/resource.c

index 60f09151997fb1f7183d722ac9f36dabbeddd815..deb89d3a87a7427d2ef04336b1aa9231932d6994 100644 (file)
@@ -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");