Skip to content

Commit

Permalink
Update frontend.c: fix comment message (#680)
Browse files Browse the repository at this point in the history
* Update frontend.c: fix comment message

* Update frontend.c: fix whitespace
  • Loading branch information
reshke committed Aug 29, 2024
1 parent 4e1cd23 commit e13dba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sources/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,9 @@ static inline od_frontend_status_t od_frontend_poll_catchup(od_client_t *client,
int absent_heartbeat_checks = 0;
while (route->last_heartbeat == 0) {
machine_sleep(ODYSSEY_CATCHUP_RECHECK_INTERVAL);
if ((int64_t)absent_heartbeat_checks++ > // add cast to int64_t for correct camparison (int64_t > int and ibt64_t > uint32_t)
/* add cast to int64_t for correct camparison
(int64_t > int and int64_t > uint32_t) */
if ((int64_t)absent_heartbeat_checks++ >
(timeout * (int64_t)1000 /
ODYSSEY_CATCHUP_RECHECK_INTERVAL)) {
od_debug(&instance->logger, "catchup", client, NULL,
Expand Down

0 comments on commit e13dba8

Please sign in to comment.