Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Comment improved so that the code goal is more clear. Thx to @agladysh.

  • Loading branch information...
commit 735b0e014236627a9fc6bdce143904e505098d1f 1 parent 9419eb0
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/redis.c
View
2  src/redis.c
@@ -516,7 +516,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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.