jbrzusto / find_tags

search raw data streams for patterns from registered tags
GNU General Public License v2.0
2 stars 0 forks source link

use timestamp from filename to correct CLOCK_MONOTONIC if possible #29

Closed jbrzusto closed 7 years ago

jbrzusto commented 7 years ago

Some SGs have used NTP to set the system clock, so have no GPS records in the raw datastream. If such a system is using CLOCK_MONOTONIC to record detected pulses, then the current ClockPinner code isn't able to pin the clock. But on these systems, file timestamps are good, so just use them.

We can use file mtime if that is valid and filename timestamps are invalid or don't exist, but its resolution is only 1s because it comes from a vfat filesystem.

So:

jbrzusto commented 7 years ago

also need to fix the @*(#$&^@ MONOTONIC bug in the SG software itself... check this: should just be a matter of supplying the fixed alsa lib