[chrony-dev] [Git][chrony/chrony][master] client: add -E option to print values in exponential notation

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Title: GitLab

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 <mui@xxxxxx>
    

3 changed files:



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/