🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: mod.computers.ridge
1 messages
1 total messages Started by dcass Sun, 18 May 1986 22:07
Updates to ruptime 1.8
#43
Author: dcass
Date: Sun, 18 May 1986 22:07
64 lines
2691 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads