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:
This commit is contained in:
parent
f2fdb2d731
commit
fdb7c7dc11
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user