summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>2003-03-28 17:52:24 +0000
committerjason <jason@openbsd.org>2003-03-28 17:52:24 +0000
commit68c62f550d4a56b31ecab5541a4e564f74d360e8 (patch)
tree0a351953159eb053a79b2bdc81112593af8741fa
parentCheck strdup() rval for NULL; noticed by mpech@ (diff)
downloadwireguard-openbsd-68c62f550d4a56b31ecab5541a4e564f74d360e8.tar.xz
wireguard-openbsd-68c62f550d4a56b31ecab5541a4e564f74d360e8.zip
report how much time was wasted; ok beck
-rw-r--r--libexec/spamd/spamd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index f64e8c01860..0037d61a836 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.26 2003/03/20 01:39:36 david Exp $ */
+/* $OpenBSD: spamd.c,v 1.27 2003/03/28 17:52:24 jason Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -609,8 +609,8 @@ nextstate(struct con *cp)
spam:
case 50:
- syslog_r(LOG_INFO, &sdata, "%s: %s -> %s",
- cp->addr, cp->mail, cp->rcpt);
+ syslog_r(LOG_INFO, &sdata, "%s: %s -> %s %ldsec",
+ cp->addr, cp->mail, cp->rcpt, (long)(t - cp->s));
doreply(cp);
cp->op = cp->obuf;
cp->ol = strlen(cp->op);