From 0199748e46b55898efd1fa94fc909899627bd678 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 22 Jul 1995 22:16:54 +0000 Subject: this avaids the "lineoverflow" which you'll always get at 80 column displays at bootup Reviewed by: Submitted by: graichen@omega.physik.fu-berlin.de (Thomas Graichen) Obtained from: --- usr.bin/ruptime/ruptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/ruptime') diff --git a/usr.bin/ruptime/ruptime.c b/usr.bin/ruptime/ruptime.c index dc0a4d1..0b83a5e 100644 --- a/usr.bin/ruptime/ruptime.c +++ b/usr.bin/ruptime/ruptime.c @@ -196,7 +196,7 @@ interval(tval, updown) static char resbuf[32]; int days, hours, minutes; - if (tval < 0 || tval > DAYSPERNYEAR * SECSPERDAY) { + if (tval < 0) { (void)snprintf(resbuf, sizeof(resbuf), " %s ??:??", updown); return (resbuf); } -- cgit v1.1