From 7fdd43658cd36653c99ad2402ee0c970530ed6bb Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 28 Aug 2019 17:49:01 +0200 Subject: [PATCH] Initialize timer --- src/algo_thunder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/algo_thunder.c b/src/algo_thunder.c index d7c78c0..469ce5c 100644 --- a/src/algo_thunder.c +++ b/src/algo_thunder.c @@ -292,6 +292,8 @@ void algo_thunder_init(struct evt_core_ctx* ctx, struct algo_ctx* app_ctx, struc union abstract_packet links = {}; //fprintf(stderr, "Total links %d\n", thunderc->total_links); thunderc->monit_pkt_size = sizeof(links.fmt.headers) + sizeof(links.fmt.content.link_monitoring_thunder) + sizeof(struct link_info) * (thunderc->total_links - 1); + + init_timer(ctx); } int algo_thunder_on_err(struct evt_core_ctx *ctx, struct evt_core_fdinfo *fdinfo) {