summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 16:07:50 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 16:07:50 +0200
commit1ae3aae35193dce25e5534b12a46011ec7912bb4 (patch)
tree85d452b2a9cc23f081de7b2f3054801d6d9ea554 /src/resolve.c
parent4c0623a080c77ed54fa9fec47c2ab982385cb9a9 (diff)
downloadfastd-1ae3aae35193dce25e5534b12a46011ec7912bb4.tar
fastd-1ae3aae35193dce25e5534b12a46011ec7912bb4.zip
Use simple int64_t timestamps in ms instead of timespecs
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 048c1b3..ba44ffe 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -116,14 +116,14 @@ void fastd_resolve_peer(fastd_peer_t *peer, fastd_remote_t *remote) {
if (fastd_peer_is_dynamic(peer))
exit_bug("trying to resolve dynamic peer");
- if (!fastd_timed_out(&remote->last_resolve_timeout)) {
+ if (!fastd_timed_out(remote->last_resolve_timeout)) {
/* last resolve was just a few seconds ago */
return;
}
pr_verbose("resolving host `%s' for peer %P...", remote->hostname, peer);
- remote->last_resolve_timeout = fastd_in_seconds(MIN_RESOLVE_INTERVAL);
+ remote->last_resolve_timeout = ctx.now + MIN_RESOLVE_INTERVAL;
resolv_arg_t *arg = fastd_new(resolv_arg_t);