summaryrefslogtreecommitdiffstats
path: root/usr.bin/ruptime
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-07-22 22:16:54 +0000
committerjoerg <joerg@FreeBSD.org>1995-07-22 22:16:54 +0000
commit0199748e46b55898efd1fa94fc909899627bd678 (patch)
tree382a1714e66d3b0d94a767bd2c64f9bd22e89dce /usr.bin/ruptime
parentcfcbb9e6f7bdd4fb25219ef26e0a1884f1deb2be (diff)
downloadFreeBSD-src-0199748e46b55898efd1fa94fc909899627bd678.zip
FreeBSD-src-0199748e46b55898efd1fa94fc909899627bd678.tar.gz
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:
Diffstat (limited to 'usr.bin/ruptime')
-rw-r--r--usr.bin/ruptime/ruptime.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud