Skip to content

Commit 98e8b43

Browse files
committed
Fix id for PING and STATUS responses
1 parent 8fc7a8d commit 98e8b43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

native/mod_manager/mod_manager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ static char *process_status(request_rec *r, const char *const *ptr, int *errtype
24422442

24432443
ap_rprintf(r, isnode_up(r, node->mess.id, Load) != OK ? "&State=NOTOK" : "&State=OK");
24442444

2445-
ap_rprintf(r, "&id=%d", (int)ap_scoreboard_image->global->restart_time);
2445+
ap_rprintf(r, "&id=%ld", ap_scoreboard_image->global->restart_time);
24462446

24472447
ap_rprintf(r, "\n");
24482448
return NULL;
@@ -2544,7 +2544,7 @@ static char *process_ping(request_rec *r, const char *const *ptr, int *errtype)
25442544

25452545
ap_rprintf(r, isnode_up(r, node->mess.id, -2) != OK ? "&State=NOTOK" : "&State=OK");
25462546
}
2547-
ap_rprintf(r, "&id=%d", (int)ap_scoreboard_image->global->restart_time);
2547+
ap_rprintf(r, "&id=%ld", ap_scoreboard_image->global->restart_time);
25482548

25492549
ap_rprintf(r, "\n");
25502550
return NULL;

0 commit comments

Comments
 (0)