Article View: mod.computers.ridge
Article #43Updates to ruptime 1.8
From: dcass
Date: Sun, 18 May 1986 22:07
Date: Sun, 18 May 1986 22:07
64 lines
2691 bytes
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.
Technical Details
Message-ID:
<8605190513.AA05912@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!NRTC.ARPA!dcassShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!ucbvax!NRTC.ARPA!dcass From: dcass@NRTC.ARPA.UUCP Newsgroups: mod.computers.ridge Subject: Updates to ruptime 1.8 Message-ID: <8605190513.AA05912@ucbvax.Berkeley.EDU> Date: Sun, 18-May-86 18:07:25 EDT Article-I.D.: ucbvax.8605190513.AA05912 Posted: Sun May 18 18:07:25 1986 Date-Received: Mon, 19-May-86 19:42:59 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 64 Approved: info-ridge@hopkins-eecs-bravo.arpa