From fullermd@over-yonder.net Tue Aug  3 15:14:42 1999
Return-Path: <fullermd@over-yonder.net>
Received: from mortis.futuresouth.com (mortis.futuresouth.com [209.45.228.14])
	by hub.freebsd.org (Postfix) with ESMTP id 074BE14E03
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  3 Aug 1999 15:14:31 -0700 (PDT)
	(envelope-from fullermd@over-yonder.net)
Received: by mortis.futuresouth.com (Postfix, from userid 100)
	id AB17C1F0A; Tue,  3 Aug 1999 17:14:12 -0500 (CDT)
Message-Id: <19990803221412.AB17C1F0A@mortis.futuresouth.com>
Date: Tue,  3 Aug 1999 17:14:12 -0500 (CDT)
From: fullermd@over-yonder.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: top(1) gives incorrect delay default
X-Send-Pr-Version: 3.2

>Number:         12946
>Category:       bin
>Synopsis:       top(1) gives incorrect delay default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    phantom
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug  3 15:20:01 PDT 1999
>Closed-Date:    Tue Aug 22 07:13:48 PDT 2000
>Last-Modified:  Tue Aug 22 07:14:17 PDT 2000
>Originator:     Matthew D. Fuller
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Absolutely none
>Environment:

	Generic

>Description:

	top(1) says under the -s option:

       -stime Set the delay between screen updates to  time  sec-
              onds.   The default delay between updates is 5 sec-
              onds.

	However, empirical evidence (read: running top) shows that the
	default delay is 2 seconds.

>How-To-Repeat:

	man top

>Fix:
	

Index: top.X
===================================================================
RCS file: /usr/cvs/src/contrib/top/top.X,v
retrieving revision 1.6
diff -u -r1.6 top.X
--- top.X	1998/08/12 10:38:37	1.6
+++ top.X	1999/08/03 22:09:30
@@ -29,7 +29,7 @@
 .if t .ds rq ''
 .\" Just in case these number registers aren't set yet...
 .if \nN==0 .nr N 10
-.if \nD==0 .nr D 5
+.if \nD==0 .nr D 2
 .I Top
 displays the top
 .if !\nN==-1 \nN


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->phantom 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Jul 17 10:45:44 PDT 2000 
Responsible-Changed-Why:  
Alexey, could you have a look and see why %delay% isn't bei 
ng expanded as expected? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=12946 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Alexey Zelkin <phantom@cris.crimea.ua>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/12946: top(1) gives incorrect delay default 
Date: Thu, 20 Jul 2000 15:13:46 +0200

 On Thu, 20 Jul 2000 15:43:55 +0300, Alexey Zelkin wrote:
 
 > Anyway -- we need to fix it and we have two points how to do it:
 > 
 > 1. fix manpage to reflect 2 sec. timeout.
 > 2. fix top.local.h to reflect documented 5 sec. timeout.
 
 Well, it'd be nice for the probelm to be fixed in 4.1-RELEASE (a few
 hours from freeze now).  So I'd suggest that we just fix the
 documentation, rather than upsetting people by changing the way it seems
 to have been in FreeBSD for as long as CVS can remember. :-)
 
 Will you commit and merge?  The manual page is already off the vendor
 branch.
 
 Ciao,
 Sheldon.
 
State-Changed-From-To: open->closed 
State-Changed-By: phantom 
State-Changed-When: Tue Aug 22 07:13:48 PDT 2000 
State-Changed-Why:  
manpage is corrected. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=12946 
>Unformatted:
