aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_host.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-11 09:37:04 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-11 09:37:04 +0200
commit47d7324b1d92e0a7614a17561e5c2f58b4b466a1 (patch)
tree98f6f840edd34a2b462ff398334b4a4aebe79f4c /pingu_host.c
parent62fc2aed4b5e12d928a10bde65b787200c103a6f (diff)
downloadpingu-47d7324b1d92e0a7614a17561e5c2f58b4b466a1.tar.bz2
pingu-47d7324b1d92e0a7614a17561e5c2f58b4b466a1.tar.xz
pingu_host.c: wait a sec before we send first burst
This is so we get time to detect routes from kernel
Diffstat (limited to 'pingu_host.c')
-rw-r--r--pingu_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_host.c b/pingu_host.c
index ca09788..afb4dd7 100644
--- a/pingu_host.c
+++ b/pingu_host.c
@@ -125,7 +125,7 @@ int pingu_host_init(struct ev_loop *loop)
if (host->label == NULL)
host->label = host->host;
ev_timer_init(&host->burst_timeout_watcher,
- pingu_burst_timeout_cb, 0, host->burst_interval);
+ pingu_burst_timeout_cb, 1.0, host->burst_interval);
ev_timer_start(loop, &host->burst_timeout_watcher);
if (host->iface->required_hosts_online == 0)