mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:35:06 -05:00
cmdmon: use 32-bit fields in client access report
The clientlog record still uses 16-bit integers to count dropped packets, but this will avoid an incompatible change in the command reply if there will be a need to count more than 2^16 drops.
This commit is contained in:
4
client.c
4
client.c
@@ -2125,14 +2125,14 @@ process_cmd_clients(char *line)
|
||||
|
||||
printf("%-25s", hostname);
|
||||
printf(" %6"PRIu32" %5"PRIu16" ",
|
||||
ntohl(client->ntp_hits), ntohs(client->ntp_drops));
|
||||
ntohl(client->ntp_hits), ntohl(client->ntp_drops));
|
||||
print_clientlog_interval(client->ntp_interval);
|
||||
printf(" ");
|
||||
print_clientlog_interval(client->ntp_timeout_interval);
|
||||
printf(" ");
|
||||
print_seconds(ntohl(client->last_ntp_hit_ago));
|
||||
printf(" %6"PRIu32" %5"PRIu16" ",
|
||||
ntohl(client->cmd_hits), ntohs(client->cmd_drops));
|
||||
ntohl(client->cmd_hits), ntohl(client->cmd_drops));
|
||||
print_clientlog_interval(client->cmd_interval);
|
||||
printf(" ");
|
||||
print_seconds(ntohl(client->last_cmd_hit_ago));
|
||||
|
||||
Reference in New Issue
Block a user