Don't forget to factor in the boottime when we calculate PPS timestamps.

Submitted by:	Akira Watanabe <akira@myaw.ei.meisei-u.ac.jp>
This commit is contained in:
Poul-Henning Kamp 2002-05-30 10:34:01 +00:00
parent b5544fefe9
commit fe71224650
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97573

View File

@ -596,6 +596,7 @@ pps_event(struct pps_state *pps, int event)
tcount &= pps->capth->th_counter->tc_counter_mask;
bt = pps->capth->th_offset;
bintime_addx(&bt, pps->capth->th_scale * tcount);
bintime_add(&bt, boottimebin);
bintime2timespec(&bt, &ts);
/* If the timecounter was wound up underneath us, bail out. */