tsproc: allow zero remote timestamps in delay update

When remote timestamps from P2P delay measurement are not known (the
remote processing time is saved in the correction field), they are set
to zero. Fix tsproc to not require non-zero t1 and t4.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
master
Miroslav Lichvar 2015-11-18 14:23:20 +01:00 committed by Richard Cochran
parent 6eec5a0d48
commit 999c86f4a9
1 changed files with 1 additions and 2 deletions

View File

@ -144,8 +144,7 @@ int tsproc_update_delay(struct tsproc *tsp, tmv_t *delay)
{
tmv_t raw_delay;
if (tmv_is_zero(tsp->t1) || tmv_is_zero(tsp->t2) ||
tmv_is_zero(tsp->t3) || tmv_is_zero(tsp->t4))
if (tmv_is_zero(tsp->t2) || tmv_is_zero(tsp->t3))
return -1;
raw_delay = get_raw_delay(tsp);