summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-29 19:04:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-29 19:04:31 +0200
commit7f33ccb920df2c308aa3076522bea683c66cb83d (patch)
treedd84a6fa62c936583cc8e28daf89e0713b4dd1ea /src/fastd.c
parent620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69 (diff)
downloadfastd-7f33ccb920df2c308aa3076522bea683c66cb83d.tar
fastd-7f33ccb920df2c308aa3076522bea683c66cb83d.zip
Don't initialize monotone timestamps with zero
The monotone timestamp is near zero on linux systems, confusing fastd.
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c3
1 files changed, 3 insertions, 0 deletions
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;