Yo [email protected]!

On Wed, 20 Jul 2016 16:35:15 -0700
Hal Murray <[email protected]>, [email protected] wrote:

> [email protected] said:
> > # a peerstats line looks like this:
> > # 57589 0.805 127.127.28.1 961a -0.000021843 0.000000000
> > 0.000233609 0.0000= 05153 # column one is the GPS week, column two
> > is the seconds into the week.   
> 
> Where did you get that?  The insides of ntpd know nothing about GPS.
> 
> The ntpd stats files use MJD and seconds of day.

Sorry, misleading comment.  The variable is indeed named mjd in the code.

> This is backwards, but you can reverse it:

Uh, oh.  I copied that part directly from Dan Drown's timstamps perl in
his chrony-graph package.

> MJD_1970 = 40587           # MJD for 1 Jan 1970
> 
>   now = time.time()
>   day = int(now)/86400
>   sec = now - day*86400
>   mjday = day + MJD_1970

Are you saying the unix time stamp result in the output is wrong?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        [email protected]  Tel:+1 541 382 8588

Attachment: pgpNp4J1T4FzY.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
[email protected]
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to