summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtp.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2010-11-24 23:27:05 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2010-11-24 23:27:05 +0000
commit5665b42b023f140e61b4e89591dbd7b010bde0cf (patch)
tree07372e51cce85f5e2a5d2f91317289e11a926ef5 /usr.sbin/smtpd/smtp.c
parent1a6ca4c1794c5f70d8e81d3515a8b2fb580e2c02 (diff)
add *maxactive stats
"ok and no need to keep them for yourself" gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtp.c')
-rw-r--r--usr.sbin/smtpd/smtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtp.c b/usr.sbin/smtpd/smtp.c
index 5728e02f839..daefbf478bc 100644
--- a/usr.sbin/smtpd/smtp.c
+++ b/usr.sbin/smtpd/smtp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp.c,v 1.76 2010/10/09 22:05:35 gilles Exp $ */
+/* $OpenBSD: smtp.c,v 1.77 2010/11/24 23:27:04 todd Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -545,6 +545,9 @@ smtp_new(struct listener *l)
env->stats->smtp.sessions++;
env->stats->smtp.sessions_active++;
+ SET_IF_GREATER(env->stats->smtp.sessions_active,
+ env->stats->smtp.sessions_maxactive);
+
return (s);
}