[mod.computers.ridge] Updates to ruptime 1.8

dcass@NRTC.ARPA.UUCP (05/19/86)

Here at NRTC, we have a number of systems which tend to say up longer
than two digits worth of days.  As such, we have modified ruptime to
allow a full three digits worth of days, rather than just two.  Also, because
we run the UCI (University of California, Irvine) version of ruptime, we
also have a feature which turns off the load averages on systems which
are currently down.

For those with 3.3u3 sources, the diffs are as follows:

--------------------------------

4a5,13
>  *
>  * NRTC Changes (disabled with -DLIMITUPTIME):
>  * Sun Mar 17 14:08:18 1986  /dec - believe it or not, we actually have
>  *	systems which need more than two digits of uptime (for days!)
>  *	So, if LIMITUPTIME is not defined, three digits are supported.
>  * UCICHANGES (enabled via -DUCI):
>  * Fri Jan  6 22:13:57 1984  Network Services (agent: Marshall Rose)
>  *	Nicer output for the "internet" hack. (Specifically, if no
>  *	users are logged in - no load averages are displayed)
120a130,140
> #ifdef	UCI
> 		if (hsp->hs_nusers == 0
> 			&& hsp->hs_wd->wd_loadav[0] == 0
> 			&& hsp->hs_wd->wd_loadav[1] == 0
> 			&& hsp->hs_wd->wd_loadav[2] == 0) {
> 		    printf("%-12.12s%s\n", hsp->hs_wd->wd_hostname,
> 			interval(hsp->hs_wd->wd_sendtime -
> 			hsp->hs_wd->wd_boottime, "  up"));
> 		    continue;
> 		}
> #endif	UCI
145a166
> #ifdef	LIMITUPTIME
147a169,172
> #else	LIMITUPTIME
> 	if (time < 0) {			/* Three digit limit */
> 		(void) sprintf(resbuf, "   %s ???:??", updown);
> #endif	LIMITUPTIME
153a179
> #ifdef	LIMITUPTIME
154a181,183
> #else	LIMITUPTIME
> 		(void) sprintf(resbuf, "%s %3d+%02d:%02d",
> #endif	LIMITUPTIME
156a186
> #ifdef	LIMITUPTIME
157a188,190
> #else	LIMITUPTIME
> 		(void) sprintf(resbuf, "%s     %2d:%02d",
> #endif	LIMITUPTIME

-------------------------

I will happily move the binary into the user library area as soon
as possible.

DEC

PS: Does someone currently have a FTP site for keeping this stuff on
    the ARPANet?  If so, we could leave the binaries there.  If not, as
    soon as I get the route/routed problem fixed, I will make my site
    available.