proposal for sntp program: include 'delay' in json output
Gary E. Miller
gem at rellim.com
Mon Jan 2 19:43:13 UTC 2023
Yo folkert!
> Lost me. What about sntp do you want to put on gitlab?
Oh, reading these in reverse order. I think you are offering to
add this as a Merge Request on GitLab? Yes, that would be good.
>
> On Mon, 2 Jan 2023 15:10:06 +0100
> folkert via devel <devel at 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 at ntpsec.org
> > https://lists.ntpsec.org/mailman/listinfo/devel
>
>
>
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> gem at 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
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20230102/e320c623/attachment.bin>
More information about the devel
mailing list