[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
- [gpsd-dev] [PATCH 0/3] ntpshm stuff, Miroslav Lichvar, 2015/05/07
- [gpsd-dev] [PATCH 2/3] Fix typo in ntpshm.h, Miroslav Lichvar, 2015/05/07
- [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Miroslav Lichvar, 2015/05/07
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time,
Gary E. Miller <=
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Gary E. Miller, 2015/05/07
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Miroslav Lichvar, 2015/05/13
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Gary E. Miller, 2015/05/13
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Miroslav Lichvar, 2015/05/14
- Re: [gpsd-dev] [PATCH 3/3] Print offset in ntpshmmon instead of reference time, Gary E. Miller, 2015/05/14
[gpsd-dev] [PATCH 1/3] Print ntpshmmon banner as comment to follow spec, Miroslav Lichvar, 2015/05/07