summaryrefslogtreecommitdiffstats
path: root/src/tlv_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tlv_types.c')
-rw-r--r--src/tlv_types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tlv_types.c b/src/tlv_types.c
index ddf819f..12b7248 100644
--- a/src/tlv_types.c
+++ b/src/tlv_types.c
@@ -77,7 +77,7 @@ static void handle_tlv_hello(gmrf_context_t *ctx, const gp_babel_tlv_hello_t *tl
uint16_t seqno = ntohs(tlv->seqno);
if (neigh->last_hello != gmrf_time_unspec) {
- int timediff = (gmrf_now(ctx->gmrf) - neigh->last_hello)/10;
+ int timediff = gp_babel_since(ctx, neigh->last_hello);
uint16_t seqexp = neigh->last_seqno + (timediff - neigh->hello_interval/2)/neigh->hello_interval;
/* cast to int16_t to ensure correct handling of seqno wrapping */