| Summary: | ruptime(1) manpage doesn't say hosts down for 4 days are ignored. | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Ben Smithurst <ben> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Committed, thanks. |
ruptime(1) doesn't show hosts in the output list at all if they have been down for four days or more [*], yet the manpage does not document this behaviour. [*] as shown by the code ... #define LEFTEARTH(h) (now - (h)->hs_wd->wd_recvtime > 4*24*60*60) ... for (i = 0; i < nhosts; i++) { hsp = &hs[i]; if (LEFTEARTH(hsp)) continue; ... Fix: (sorry, this is against the -stable version, not -current, but that's all I have here.)--sJgfuSYrnSdYyjUXFSA36VSCW8kGZn1OqsQcTHaIGIJkYYr0 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- ruptime.1.orig Wed Oct 13 04:33:46 1999 +++ ruptime.1 Wed Oct 13 04:36:33 1999 @@ -49,7 +49,8 @@ broadcast by each host on the network once every three minutes. .Pp Machines for which no status report has been received for 11 -minutes are shown as being down. +minutes are shown as being down, and machines for which no status report has +been received for 4 days are not shown in the list at all. .Pp The options are as follows: .Bl -tag -width Ds