Clear out saved time stamps after setting the clock.

When we create a discontinuity in the clock time, we must avoid mixing
local time stamps from before and after the jump.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-03-11 10:58:24 +01:00
parent 2fcac204de
commit 7421e74aca
1 changed files with 2 additions and 0 deletions

View File

@ -416,6 +416,8 @@ enum servo_state clock_synchronize(struct clock *c,
break;
case SERVO_JUMP:
clock_step(c->clkid, -c->master_offset);
c->t1 = tmv_zero();
c->t2 = tmv_zero();
break;
case SERVO_LOCKED:
clock_ppb(c->clkid, -adj);