Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
dvb_psi: use monotonic clocks in dvb_time_update()
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20cfeafThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @perexg I'm using Tvheadend to get my digital TV signal using a DVB-T adapter implemented through linuxdvb API on a RaspberryPI. I have configured it to update the system clock, but when the system starts it don't update the time until 30 minutes after the system is up. I have fixed it checking for the first time update, using the condition
I want to know what is the diference between use the global clock (gclk) as previous versions and the monotonic clock (mclk).
Best regards
20cfeafThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 3a4e08a . Thanks.
Monotonic time is not modified from the external clock (NTP or so) where the clocks may be shifted backward. It's really bad for the code which assumes the continuous (monotonic) time line. Think about this code requirement - 'I want to wait 3 seconds without any time shifts'.