From: cristy Date: Tue, 16 Dec 2014 16:51:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1620 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70bdaa802601ebe6db5afd55889f20362c14b6bc;p=imagemagick --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 02242887e..9f61442f2 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -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) {