]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 16:48:41 +0000 (16:48 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 21 Jan 2015 16:48:41 +0000 (16:48 +0000)
MagickCore/cache.c

index 51b92ef8bbe6e171acf103204f4162f1bdfea9fa..fd284fab985d9740062c340e0d99d93997b6136c 100644 (file)
@@ -1438,7 +1438,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
     status;
 
   static MagickSizeType
-    cpu_throttle = 0,
+    cpu_throttle = MagickResourceInfinity,
     cycles = 0,
     time_limit = 0;
 
@@ -1447,7 +1447,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
 
   status=MagickTrue;
   LockSemaphoreInfo(image->semaphore);
-  if (cpu_throttle == 0)
+  if (cpu_throttle == MagickResourceInfinity)
     cpu_throttle=GetMagickResourceLimit(ThrottleResource);
   if ((cpu_throttle != 0) && ((cycles++ % 32) == 0))
     MagickDelay(cpu_throttle);