From 7f33ccb920df2c308aa3076522bea683c66cb83d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 29 Aug 2013 19:04:31 +0200 Subject: Don't initialize monotone timestamps with zero The monotone timestamp is near zero on linux systems, confusing fastd. --- src/fastd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fastd.c') diff --git a/src/fastd.c b/src/fastd.c index 7c702c1..6ce10fc 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -769,6 +769,9 @@ int main(int argc, char *argv[]) { update_time(&ctx); + conf.long_ago = ctx.now; + conf.long_ago.tv_sec -= 86400; /* 24h in the past */ + ctx.next_keepalives = ctx.now; ctx.next_keepalives.tv_sec += conf.keepalive_interval; -- cgit v1.2.3