X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fbfd%2Fbfd_main.c;h=34e98042e86ffc2b9e5756c156f2f7d397716822;hb=27d12d30cdf5af37fad0e14db0877ca716af2115;hp=ef6ada8823fbd1112678d4db4a371bf7bb6ed778;hpb=31b1a6ce1d427d08b3ae1eac75d702860c255043;p=vpp.git diff --git a/src/vnet/bfd/bfd_main.c b/src/vnet/bfd/bfd_main.c index ef6ada8823f..34e98042e86 100644 --- a/src/vnet/bfd/bfd_main.c +++ b/src/vnet/bfd/bfd_main.c @@ -60,7 +60,7 @@ bfd_usec_to_clocks (const bfd_main_t * bm, u64 us) u32 bfd_clocks_to_usec (const bfd_main_t * bm, u64 clocks) { - return (clocks / bm->cpu_cps) * USEC_PER_SECOND; + return ((f64) clocks / bm->cpu_cps) * USEC_PER_SECOND; } static vlib_node_registration_t bfd_process_node;