]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 16 Dec 2014 16:51:56 +0000 (16:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 16 Dec 2014 16:51:56 +0000 (16:51 +0000)
MagickCore/cache.c

index 02242887e92bcad740fd3f659a99d08ce453c3fd..9f61442f282c907c229a463d084e32b09adec4e5 100644 (file)
@@ -1457,7 +1457,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone,
   LockSemaphoreInfo(image->semaphore);
   if (cpu_throttle == 0)
     cpu_throttle=GetMagickResourceLimit(ThrottleResource);
-  if ((cpu_throttle != MagickResourceInfinity) && ((cycles++ % 32) == 0))
+  if ((cpu_throttle != 0) && ((cycles++ % 32) == 0))
     MagickDelay(cpu_throttle);
   if (time_limit == 0)
     {