From 7421e74acaff2b95af3652dc0173be03c24f0f61 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 11 Mar 2012 10:58:24 +0100 Subject: [PATCH] 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 --- clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clock.c b/clock.c index d788b3e..1487567 100644 --- a/clock.c +++ b/clock.c @@ -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);