From 2ede15cd56c58c354b4214916f8643dcc7405319 Mon Sep 17 00:00:00 2001 From: Sebastian Benoit Date: Sat, 27 Apr 2013 16:39:31 +0000 Subject: 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@ --- usr.sbin/relayctl/relayctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/relayctl') 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 @@ -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, -- cgit v1.2.3