From f078d5628d5931903111e384d55bacf205986fe5 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 4cc378e2..ecf02e0a 100644 --- a/src/redis.c +++ b/src/redis.c @@ -645,7 +645,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