From bicknell@ussenterprise.ufp.org  Thu Sep 20 07:29:01 2001
Return-Path: <bicknell@ussenterprise.ufp.org>
Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210])
	by hub.freebsd.org (Postfix) with ESMTP
	id E388837B419; Thu, 20 Sep 2001 07:29:00 -0700 (PDT)
Received: (from bicknell@localhost)
	by ussenterprise.ufp.org (8.11.1/8.11.1) id f8KESur51565;
	Thu, 20 Sep 2001 10:28:56 -0400 (EDT)
	(envelope-from bicknell)
Message-Id: <20010920102856.B51134@ussenterprise.ufp.org>
Date: Thu, 20 Sep 2001 10:28:56 -0400
From: Leo Bicknell <bicknell@ufp.org>
To: "Vladimir B.Grebenschikov" <vova@express.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG
In-Reply-To: <E15k1tE-0000r2-00@vbook.express.ru>; from vova@express.ru on Thu, Sep 20, 2001 at 03:21:08PM +0400
Subject: Re: uptime and w utilities lie about real uptime
References: <E15k1tE-0000r2-00@vbook.express.ru>

>Number:         30686
>Category:       bin
>Synopsis:       Re: uptime and w utilities lie about real uptime
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 20 07:30:03 PDT 2001
>Closed-Date:    Sat Sep 22 09:25:35 PDT 2001
>Last-Modified:  Wed Oct 26 05:16:04 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 It's rounding to minutes when it shouldn't, uptime only displays
 seconds for very short uptimes, and then always rounds to minutes.
 Your patch causes it to truncate, which is probably the right
 thing to do, the alternative would be:
 
 if (uptime > 60) uptime += 30;
 
 That way it won't start rounding until a full minute has passed, 
 allowing the first 60 seconds to be displayed properly.  This has
 less of a chance of breaking things depending on the rounding,
 but I would hope ther are none of those.
 
 -- 
 Leo Bicknell - bicknell@ufp.org
 Systems Engineer - Internetworking Engineer - CCIE 3440
 Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Sat Sep 22 09:25:35 PDT 2001 
State-Changed-Why:  
Part of another PR's Audit-Trail 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: greid 
Responsible-Changed-When: Sat Sep 22 09:25:35 PDT 2001 
Responsible-Changed-Why:  
Misfiled 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30686 
>Unformatted:
