summaryrefslogtreecommitdiff
path: root/src/redis.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-16 09:26:36 +0200
committerantirez <antirez@gmail.com>2015-07-16 09:26:36 +0200
commite0bb454a16eff5596814e5773540c7e5e5409bde (patch)
treea6c83254bcbaf98131a6a996e7addcf7a691002d /src/redis.c
parent0f64080dcb9f44c923379f909aae82f6c2b2ed19 (diff)
downloadredis-e0bb454a16eff5596814e5773540c7e5e5409bde.tar.gz
Clarify a comment in clientsCron().
Diffstat (limited to 'src/redis.c')
-rw-r--r--src/redis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/redis.c b/src/redis.c
index 656c21ff2..61d646363 100644
--- a/src/redis.c
+++ b/src/redis.c
@@ -973,11 +973,11 @@ int clientsCronResizeQueryBuffer(redisClient *c) {
}
void clientsCron(void) {
- /* Make sure to process at least 1/(server.hz*10) of clients per call.
- * Since this function is called server.hz times per second we are sure that
- * in the worst case we process all the clients in 10 seconds.
- * In normal conditions (a reasonable number of clients) we process
- * all the clients in a shorter time. */
+ /* Make sure to process at least numclients/(server.hz*10) of clients
+ * per call. Since this function is called server.hz times per second
+ * we are sure that in the worst case we process all the clients in 10
+ * seconds. In normal conditions (a reasonable number of clients) we
+ * process all the clients in a shorter time. */
int numclients = listLength(server.clients);
int iterations = numclients/(server.hz*10);