diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-29 19:04:31 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-29 19:04:31 +0200 |
commit | 7f33ccb920df2c308aa3076522bea683c66cb83d (patch) | |
tree | dd84a6fa62c936583cc8e28daf89e0713b4dd1ea /src/fastd.c | |
parent | 620f1cd45f44eb2dc2d9dd16bdf6ba4512a1bd69 (diff) | |
download | fastd-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.c | 3 |
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; |