gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of referenc


From: Gary E. Miller
Subject: Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time
Date: Thu, 7 May 2015 14:39:38 -0700

Yo Miroslav!

On Thu,  7 May 2015 12:34:34 +0200
Miroslav Lichvar <address@hidden> wrote:

> -                    offset = (float(record[3]) - float(record[4]))
> +                    offset = float(record[4])

Python floats are 53 bits of precision.  The offset needs 62 bits of 
precision.  So this discards the imporant parts of the offset.

Take a look at this program to see how it fails:
        test_timespec -v


RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97701
        address@hidden  Tel:+1(541)382-8588



reply via email to

[Prev in Thread] Current Thread [Next in Thread]