From: antirez Date: Fri, 11 May 2012 20:33:28 +0000 (+0200) Subject: Comment improved so that the code goal is more clear. Thx to @agladysh. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/f333788fbcaf67fa97c509f0f61d557b6669b1fe Comment improved so that the code goal is more clear. Thx to @agladysh. --- diff --git a/src/redis.c b/src/redis.c index 77c26b97..276ed796 100644 --- a/src/redis.c +++ b/src/redis.c @@ -658,7 +658,7 @@ void activeExpireCycle(void) { * expire. So after a given amount of milliseconds return to the * caller waiting for the other active expire cycle. */ iteration++; - if ((iteration & 0xff) == 0 && /* & 0xff is the same as % 255 */ + if ((iteration & 0xff) == 0 && /* Check once every 255 iterations */ (mstime()-start) > REDIS_EXPIRELOOKUPS_TIME_LIMIT) return; } while (expired > REDIS_EXPIRELOOKUPS_PER_CRON/4); }