summaryrefslogtreecommitdiff
path: root/usr.sbin/relayctl
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2013-04-27 16:39:31 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2013-04-27 16:39:31 +0000
commit2ede15cd56c58c354b4214916f8643dcc7405319 (patch)
treecd94c638ee5351aa0dbfd190f693e1df5d8581f4 /usr.sbin/relayctl
parent0102d4c98e115230a27f56786e74fd0a9b3586f1 (diff)
time_t 64bit fixes for relayd and relayctl:
- fix statistics - set INT_MAX limit on session timeouts - make sure we dont use to large session timeouts in pf redirects and openssl tested with old and new time_t ok florian@
Diffstat (limited to 'usr.sbin/relayctl')
-rw-r--r--usr.sbin/relayctl/relayctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/relayctl/relayctl.c b/usr.sbin/relayctl/relayctl.c
index ab66709ab38..7b97498f7f9 100644
--- a/usr.sbin/relayctl/relayctl.c
+++ b/usr.sbin/relayctl/relayctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayctl.c,v 1.47 2013/04/03 03:10:42 guenther Exp $ */
+/* $OpenBSD: relayctl.c,v 1.48 2013/04/27 16:39:29 benno Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -554,8 +554,8 @@ print_statistics(struct ctl_stats stats[RELAY_MAXPROC + 1])
if (crs.cnt == 0)
return;
printf("\t%8s\ttotal: %llu sessions\n"
- "\t%8s\tlast: %u/%us %u/h %u/d sessions\n"
- "\t%8s\taverage: %u/%us %u/h %u/d sessions\n",
+ "\t%8s\tlast: %u/%llus %u/h %u/d sessions\n"
+ "\t%8s\taverage: %u/%llus %u/h %u/d sessions\n",
"", crs.cnt,
"", crs.last, crs.interval,
crs.last_hour, crs.last_day,