diff options
author | antirez <antirez@gmail.com> | 2012-05-11 22:33:28 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-05-12 09:33:29 +0200 |
commit | f078d5628d5931903111e384d55bacf205986fe5 (patch) | |
tree | df5670d92aec41e75e0f99b7546b37ca61f733fa | |
parent | 3a401464e9c42fafeaa9405db60d10b3256aca51 (diff) | |
download | redis-f078d5628d5931903111e384d55bacf205986fe5.tar.gz |
Comment improved so that the code goal is more clear. Thx to @agladysh.
-rw-r--r-- | src/redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c index 4cc378e24..ecf02e0a3 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); } |