mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 21:12:13 +00:00
Clarify a comment in clientsCron().
This commit is contained in:
parent
7ae1d4d6f5
commit
5dcba26b31
10
src/redis.c
10
src/redis.c
@ -963,11 +963,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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user