Skip to content

Commit

Permalink
keepalive: proper storing of last up/down timestamps
Browse files Browse the repository at this point in the history
- GH #3790
  • Loading branch information
miconda committed Mar 19, 2024
1 parent 9ae99b3 commit 9e2a0ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/keepalive/keepalive_core.c
Expand Up @@ -131,11 +131,11 @@ static void ka_options_callback(
// accepting 2XX return codes
if(ps->code >= 200 && ps->code <= 299) {
state = KA_STATE_UP;
ka_dest->last_down = time(NULL);
ka_dest->last_up = time(NULL);
ka_dest->counter = 0;
} else {
state = KA_STATE_DOWN;
ka_dest->last_up = time(NULL);
ka_dest->last_down = time(NULL);
ka_dest->counter++;
}

Expand Down

0 comments on commit 9e2a0ee

Please sign in to comment.