From f333788fbcaf67fa97c509f0f61d557b6669b1fe Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 11 May 2012 22:33:28 +0200 Subject: [PATCH] Comment improved so that the code goal is more clear. Thx to @agladysh. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2