summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayctl
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2013-04-27 16:39:29 +0000
committerbenno <benno@openbsd.org>2013-04-27 16:39:29 +0000
commitb02f4fdb04b0c2f66853d06609d3600140b81982 (patch)
tree4ec3ca6e4965050caf235360bad876447557d602 /usr.sbin/relayctl
parentConvert RAID 6 to new work unit completion routines. (diff)
downloadwireguard-openbsd-b02f4fdb04b0c2f66853d06609d3600140b81982.tar.xz
wireguard-openbsd-b02f4fdb04b0c2f66853d06609d3600140b81982.zip
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,