From 4fb6c831df358d42b72a4271645cc1b96dc5f319 Mon Sep 17 00:00:00 2001 From: danny Date: Wed, 1 Apr 1998 21:34:10 +0000 Subject: PR: bin/6193 Submitted by: Max Euston Make times between 0000-0059 and 1200-1259 show as 12:xx, not 0:xx --- usr.bin/rup/rup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/rup/rup.c') diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index e0b1de2..89b6ffb 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -33,7 +33,7 @@ #ifndef lint static const char rcsid[] = - "$Id: rup.c,v 1.8 1997/08/07 06:50:02 charnier Exp $"; + "$Id: rup.c,v 1.9 1997/09/15 09:46:42 jkh Exp $"; #endif /* not lint */ #include @@ -137,7 +137,7 @@ rstat_reply(char *replyp, struct sockaddr_in *raddrp) hours_buf[0] = '\0'; printf(" %2d:%02d%cm up %9.9s%9.9s load average: %.2f %.2f %.2f\n", - host_time.tm_hour % 12, + (host_time.tm_hour % 12) ? host_time.tm_hour % 12 : 12, host_time.tm_min, (host_time.tm_hour >= 12) ? 'p' : 'a', days_buf, -- cgit v1.1