return sum / REDIS_OPS_SEC_SAMPLES;
}
-void closeTimedoutClient(redisClient *c) {
+void clientsCronHandleTimeout(redisClient *c) {
time_t now = time(NULL);
if (server.maxidletime &&
listRotate(server.clients);
head = listFirst(server.clients);
c = listNodeValue(head);
- closeTimedoutClient(c);
+ clientsCronHandleTimeout(c);
}
}