Yo folkert! Lost me. What about sntp do you want to put on gitlab?
On Mon, 2 Jan 2023 15:10:06 +0100 folkert via devel <devel@ntpsec.org> wrote: > Just noticed https://ntpsec.org/contributor.html > If you people want to include it, I'll put it in gitlab. > > > Hello, > > > > I would like to suggest the following small tweak for the sntp > > program: > > > > --- sorg 2023-01-02 14:45:52.975926908 +0100 > > +++ /usr/bin/sntp 2023-01-02 14:44:13.322691440 +0100 > > @@ -216,12 +216,12 @@ > > > > if json: > > say('{"time":"%sT%s%s","offset":%f,"precision":%f,"host":"%s",' > > - '"ip":"%s","stratum":%s,"leap":"%s","adjusted":%s}\n' > > + > > '"ip":"%s","stratum":%s,"leap":"%s","adjusted":%s,"delay":%f}\n' % > > (date, tod, tz, packet.adjust(), packet.synchd(), > > packet.hostname, packet.resolved or packet.hostname, > > packet.stratum, packet.leap(), > > - "true" if adjusted else "false")) > > + "true" if adjusted else "false", packet.delta())) > > else: > > say("%s %s (%s) %+f +/- %f %s" > > % (date, tod, tz, > > > > It makes it include the delay in the json output. > _______________________________________________ > devel mailing list > devel@ntpsec.org > https://lists.ntpsec.org/mailman/listinfo/devel RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can't measure it, you can't improve it." - Lord Kelvin
pgpr14yf7gh3Z.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org https://lists.ntpsec.org/mailman/listinfo/devel