]> git.saurik.com Git - redis.git/blobdiff - src/redis.c
Comment improved so that the code goal is more clear. Thx to @agladysh.
[redis.git] / src / redis.c
index 77c26b97ef033a5841d0423713d9a9ab340bd01f..276ed796ce5e717b254477d675b508b52bc81be0 100644 (file)
@@ -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);
     }