Signed-off-by: Michael Brown <[email protected]>
---
tsproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tsproc.c b/tsproc.c
index 06c0184..b50c8e5 100644
--- a/tsproc.c
+++ b/tsproc.c
@@ -214,7 +214,7 @@ int tsproc_update_offset(struct tsproc *tsp, tmv_t *offset,
double *weight)
return 0;
if (weighting(tsp) && tsp->filtered_delay > 0 && raw_delay > 0) {
- *weight = (double)tsp->filtered_delay / raw_delay;
+ *weight = tmv_dbl(tsp->filtered_delay) / tmv_dbl(raw_delay);
if (*weight > 1.0)
*weight = 1.0;
} else {
--
2.9.5
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel