Do not calculate the path delay without valid sync time stamps.

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

View File

@ -333,6 +333,9 @@ void clock_path_delay(struct clock *c, struct timespec req, struct timestamp rx,
{ {
tmv_t c1, c2, c3, pd, t1, t2, t3, t4; tmv_t c1, c2, c3, pd, t1, t2, t3, t4;
if (tmv_is_zero(c->t1))
return;
c1 = c->c1; c1 = c->c1;
c2 = c->c2; c2 = c->c2;
c3 = correction_to_tmv(correction); c3 = correction_to_tmv(correction);