[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Print offset in ntpshmmon?
From: |
Eric S. Raymond |
Subject: |
Re: [gpsd-dev] Print offset in ntpshmmon? |
Date: |
Tue, 28 Apr 2015 08:14:26 -0400 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Gary E. Miller <address@hidden>:
> Yo Miroslav!
>
> On Wed, 22 Apr 2015 08:43:29 +0200
> Miroslav Lichvar <address@hidden> wrote:
>
> > Looking at the ntpshmviz code, it seems the clock timestamp is just
> > used to calculate the offset. If ntpshmmon did that, ntpshmviz could
> > use it directly and as a bonus there would be no loss in the precision
> > (avoiding substraction of two large close float values).
>
> Gack. so even ntpshmviz gets the math wrong...
>
> > - offset = (float(record[3]) - float(record[4]))
> > + offset = float(record[4])
>
> Both are pretty bad....
You're the expert. Please fix it.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
- [gpsd-dev] Print offset in ntpshmmon?, Miroslav Lichvar, 2015/04/21
- Re: [gpsd-dev] Print offset in ntpshmmon?, Eric S. Raymond, 2015/04/21
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/21
- Re: [gpsd-dev] Print offset in ntpshmmon?, Miroslav Lichvar, 2015/04/22
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/22
- Re: [gpsd-dev] Print offset in ntpshmmon?,
Eric S. Raymond <=
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/28
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/28
- Re: [gpsd-dev] Print offset in ntpshmmon?, Miroslav Lichvar, 2015/04/30
- Re: [gpsd-dev] Print offset in ntpshmmon?, Hal Murray, 2015/04/30
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/30
- Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/30
Re: [gpsd-dev] Print offset in ntpshmmon?, Gary E. Miller, 2015/04/21