lfpinit() signed or unsigned?
Gary E. Miller
gem at rellim.com
Fri Mar 10 03:28:38 UTC 2017
Yo Hal!
On Thu, 09 Mar 2017 18:39:13 -0800
Hal Murray <hmurray at megapathdsl.net> wrote:
> > Everything still fits. At least until 2038. 7FFFFFFFu is
> > 2147483647 which as a time_t is "Mon Jan 18 19:14:07 PST 2038".
>
> There are two issues.
> Unix time stamps overflow 31 bits in 2038.
> NTP time stamps overflow 32 bits in 2036.
Yeah, I see that now. But as you pointed out, NTP time is already
modulo, so it only fails immediately after the rollover.
But that rollover is gonna be rough...
I added your note as a comment in include/ntp_fp.h
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem at rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170309/f4eb5282/attachment.bin>
More information about the devel
mailing list