diff options
author | 2011-02-08 08:52:28 +0000 | |
---|---|---|
committer | 2011-02-08 08:52:28 +0000 | |
commit | a7da800a989deffb6736d539a1fcdced3eb05005 (patch) | |
tree | 57d4651e76bdce3fc9be3d0adbbae2b6ee25bfd0 | |
parent | Use absolute path to the temporary hosts file; causes /etc/hosts to be correctly (diff) | |
download | wireguard-openbsd-a7da800a989deffb6736d539a1fcdced3eb05005.tar.xz wireguard-openbsd-a7da800a989deffb6736d539a1fcdced3eb05005.zip |
Log the time taken for all types of check, not just tcp checks.
ok pyr@
-rw-r--r-- | usr.sbin/relayd/hce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayd/hce.c b/usr.sbin/relayd/hce.c index 0b4fd042d64..a0361602d12 100644 --- a/usr.sbin/relayd/hce.c +++ b/usr.sbin/relayd/hce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hce.c,v 1.56 2010/11/30 14:38:45 reyk Exp $ */ +/* $OpenBSD: hce.c,v 1.57 2011/02/08 08:52:28 sthen Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -258,6 +258,8 @@ hce_launch_checks(int fd, short event, void *arg) TAILQ_FOREACH(host, &table->hosts, entry) { if (host->flags & F_DISABLE || host->conf.parentid) continue; + bcopy(&tv, &host->cte.tv_start, + sizeof(host->cte.tv_start)); switch (table->conf.check) { case CHECK_ICMP: schedule_icmp(env, host); @@ -270,8 +272,6 @@ hce_launch_checks(int fd, short event, void *arg) host->last_up = host->up; host->cte.host = host; host->cte.table = table; - bcopy(&tv, &host->cte.tv_start, - sizeof(host->cte.tv_start)); check_tcp(&host->cte); break; } |