mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 08:55:07 -05:00
client: truncate long hostnames in clients output
This commit is contained in:
2
client.c
2
client.c
@@ -2289,7 +2289,7 @@ process_cmd_clients(char *line)
|
|||||||
if (ip.family == IPADDR_UNSPEC)
|
if (ip.family == IPADDR_UNSPEC)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
format_name(name, sizeof (name), sizeof (name), 0, 0, &ip);
|
format_name(name, sizeof (name), 25, 0, 0, &ip);
|
||||||
|
|
||||||
print_report("%-25s %6U %5U %C %C %I %6U %5U %C %I\n",
|
print_report("%-25s %6U %5U %C %C %I %6U %5U %C %I\n",
|
||||||
name,
|
name,
|
||||||
|
|||||||
Reference in New Issue
Block a user