|
|
Log in / Subscribe / Register

A GPSD time warp

A GPSD time warp

Posted Aug 4, 2021 23:50 UTC (Wed) by HenrikH (subscriber, #31152)
In reply to: A GPSD time warp by mathstuf
Parent article: A GPSD time warp

While it technically would be just two extra bits it would separate the rollover event from the week value, aka the same "how to calculate the actual week" logic would be backwards compatible between the two versions but the two extra bits could now be used to indicate that the week number have been rolled instead of providing 12 more bits of week data.

Now they probably (and perhaps correctly so) that adding 3 more bits just made the rollovers such a seldom occurrence that we no longer have to think about them, but I still feel that with a rollover counter the logic around the week rollover could be more robust in the receiver.

Neither change would of course fix this 1024 problem since that was just a miscalculation by the dev, there a proper 64-bit value for the week with zero rollover would have been better but then I guess that bandwidth is an issue here and the bits are severely limited.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds