diff --git a/src/server.c b/src/server.c index 36d8ada039..9ea8c370e5 100644 --- a/src/server.c +++ b/src/server.c @@ -1135,7 +1135,7 @@ long long clientsTimerProc(struct aeEventLoop *eventLoop, long long id, void *cl if (clients_this_cycle > MAX_CLIENTS_PER_CLOCK_TICK) { clients_this_cycle = MAX_CLIENTS_PER_CLOCK_TICK; float required_hz = (float)numclients / MAX_CLIENTS_PER_CLOCK_TICK; - if (required_hz > CONFIG_MAX_HZ) required_hz = CONFIG_MAX_HZ + if (required_hz > CONFIG_MAX_HZ) required_hz = CONFIG_MAX_HZ; delay_ms = 1000.0 / required_hz; } else { delay_ms = 1000 / server.hz;