Skip to content

Commit

Permalink
Update src/server.c
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Brunner <[email protected]>
  • Loading branch information
JimB123 authored Jan 23, 2025
1 parent 0264c99 commit 172d46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 172d46c

Please sign in to comment.