gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Print offset in ntpshmmon?


From: Gary E. Miller
Subject: Re: [gpsd-dev] Print offset in ntpshmmon?
Date: Wed, 22 Apr 2015 00:08:33 -0700

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....

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]