]> git.saurik.com Git - redis.git/commitdiff
Comment improved so that the code goal is more clear. Thx to @agladysh.
authorantirez <antirez@gmail.com>
Fri, 11 May 2012 20:33:28 +0000 (22:33 +0200)
committerantirez <antirez@gmail.com>
Sat, 12 May 2012 07:33:29 +0000 (09:33 +0200)
src/redis.c

index 4cc378e24a40d2de7d4955e6bd303147c1a1a548..ecf02e0a3782189278461b9543219257efd7514b 100644 (file)
@@ -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);
     }