Re: [chrony-users] Offsets for non tested servers

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



On Tue, Sep 1, 2026, at 08:55, Miroslav Lichvar wrote:

> but if it started doing that now, I suspect many existing scripts parsing
> the data would fail and users would not be happy with that.

This is true too. but no scripts has kept the (near) perfect value of "+0ns"
for something with not exist... if someone wants the average of his own offsets he purged them before ^^

[code]
chronyc -N sourcestats | awk '{if ($2 == "0") print $1 " X X X X X (untested)"; else print $0}' | awk '{print $1, $7}'| awk '{printf "%-40s %s\n", $1, $2}' | sed '1d' | sed 's/us$/ micro seconds/' | sed 's/ns$/ nano seconds/'
[/code ;)]

gives at chronyc restart 

ntp-pool.rdem-systems.com                +1382 micro seconds
ntp-pool.rdem-systems.com                (untested)
ntp-pool.rdem-systems.com                +2479 micro seconds
ntp-pool.rdem-systems.com                (untested)
ntp-pool.rdem-systems.com                (untested)

ok so you can see than i find a workaround but it is better/more logic to permanently display "-" or a blank instead of a real fake value ;) script kiddies will make tiny changes if needed ;)

-- 
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx 
with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


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