From ben@scientia.demon.co.uk Tue Oct 12 20:58:45 1999
Return-Path: <ben@scientia.demon.co.uk>
Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13])
	by hub.freebsd.org (Postfix) with ESMTP id 0C51414CBB
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Oct 1999 20:58:28 -0700 (PDT)
	(envelope-from ben@scientia.demon.co.uk)
Received: from magnesium.scientia.demon.co.uk ([192.168.0.2] ident=exim)
	by scientia.demon.co.uk with esmtp (Exim 3.032 #1)
	id 11bFJs-0009fX-00 for FreeBSD-gnats-submit@freebsd.org;
	Wed, 13 Oct 1999 04:43:16 +0100
Received: (from ben) by magnesium.scientia.demon.co.uk (Exim 3.032 #1)
	id 11bFJs-0008hb-00 for FreeBSD-gnats-submit@freebsd.org;
	Wed, 13 Oct 1999 04:43:16 +0100
Message-Id: <E11bFJs-0008hb-00@magnesium.scientia.demon.co.uk>
Date: Wed, 13 Oct 1999 04:43:16 +0100
From: Ben Smithurst <ben@scientia.demon.co.uk>
Reply-To: ben@scientia.demon.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: ruptime(1) manpage doesn't say hosts down for 4 days are ignored.
X-Send-Pr-Version: 3.2

>Number:         14299
>Category:       docs
>Synopsis:       ruptime(1) manpage doesn't say hosts down for 4 days are ignored.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 12 21:00:00 PDT 1999
>Closed-Date:    Mon Nov 1 11:41:55 PST 1999
>Last-Modified:  Mon Nov  1 11:42:11 PST 1999
>Originator:     Ben Smithurst
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:

>Description:

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;
...

>How-To-Repeat:

>Fix:

--- 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

(sorry, this is against the -stable version, not -current, but that's
all I have here.)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Mon Nov 1 11:41:55 PST 1999 
State-Changed-Why:  
Committed, thanks. 
>Unformatted:
