Miroslav Lichvar pushed to branch master at chrony / chrony


Commits:
7fab5413 by Miroslav Lichvar at 2026-10-05T16:09:30+02:00
client: add -E option to print values in exponential notation

With very stable clocks some values like the skew can be so small that
chronyc prints them as zero, even in the CSV mode.

Add -E option to print most floating-point values in exponential
notation using the printf() %e conversion and keep seconds in seconds
(no s/ms/us/ns suffix). Adjust the precision to not break formatting of
reports in the normal mode. In the CSV mode, use precision of 7 to match
the resolution of the float type used in the cmdmon protocol.

Reported-by: Markus Kovero <[email protected]>

- - - - -


3 changed files:

- client.c
- doc/chronyc.adoc
- test/simulation/110-chronyc


View it on GitLab: 
https://gitlab.com/chrony/chrony/-/commit/7fab5413c58eccc91d81d940ec75654fd23e1d36

-- 
View it on GitLab: 
https://gitlab.com/chrony/chrony/-/commit/7fab5413c58eccc91d81d940ec75654fd23e1d36
You're receiving this email because of your account on gitlab.com. Manage all 
notifications: https://gitlab.com/-/profile/notifications | Help: 
https://gitlab.com/help


Reply via email to