diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2011-02-08 08:52:29 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2011-02-08 08:52:29 +0000 |
commit | 2c19b177a7765189fd2a5a2096dda74c0a308168 (patch) | |
tree | 700899fd3be8e0b421c28e8a11e9a0cf7ea7b8a0 /usr.sbin/relayd | |
parent | c78aef209d86a683f4658d72b96dfa1fdd2b7d85 (diff) |
Log the time taken for all types of check, not just tcp checks.
ok pyr@
Diffstat (limited to 'usr.sbin/relayd')
-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; } |