aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/flowprobe
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/flowprobe')
-rw-r--r--src/plugins/flowprobe/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/flowprobe/node.c b/src/plugins/flowprobe/node.c
index 604a0a0e..c4610a77 100644
--- a/src/plugins/flowprobe/node.c
+++ b/src/plugins/flowprobe/node.c
@@ -971,9 +971,9 @@ flowprobe_walker_process (vlib_main_t * vm,
* entry. Otherwise restart timer with what's left
* Premature passive timer by more than 10%
*/
- if ((now - e->last_updated) < (fm->passive_timer * 0.9))
+ if ((now - e->last_updated) < (u64) (fm->passive_timer * 0.9))
{
- f64 delta = fm->passive_timer - (now - e->last_updated);
+ u64 delta = fm->passive_timer - (now - e->last_updated);
e->passive_timer_handle = tw_timer_start_2t_1w_2048sl
(fm->timers_per_worker[cpu_index], *i, 0, delta);
}