mirror of
https://gitlab.com/chrony/chrony.git
synced 2026-03-11 00:59:38 -04:00
chronyc: add wider output option
Add option '-w' which set the output width from 80 to 94. This allows for all table-outputting operations to display IPv4 and IPv6 addresses aligned with the headers. Extend test/simulation/110-chronyc to test for the five commands which support wide mode. To set wide display, call `chronyc` with option `-w`. Example of a `clients` list before and after: chronyc -n clients -p 5 Hostname NTP Drop Int IntL Last Cmd Drop Int Last =============================================================================== 2001:db8:1234:5678:90ab:cdef:1234:5678 952 0 7 - 75 0 0 - - 192.168.1.1 0 0 - - - 0 0 - - chronyc -n -w clients -p 5 Hostname NTP Drop Int IntL Last Cmd Drop Int Last ============================================================================================= 2001:db8:1234:5678:90ab:cdef:1234:5678 952 0 7 - 75 0 0 - - 192.168.1.1 0 0 - - - 0 0 - -
This commit is contained in:
committed by
Miroslav Lichvar
parent
4ddc6b334d
commit
d622b222a9
@@ -134,6 +134,10 @@ This option is ignored and is provided only for compatibility.
|
||||
*-a*::
|
||||
This option is ignored and is provided only for compatibility.
|
||||
|
||||
*-w*::
|
||||
This option sets the output width to 94 columns, from the standard 80, for the
|
||||
commands *authdata*, *clients*, *selectdata*, *sources*, and *sourcestats*.
|
||||
|
||||
*-v*, *--version*::
|
||||
With this option *chronyc* displays its version number on the terminal and
|
||||
exits.
|
||||
|
||||
Reference in New Issue
Block a user