Bug 30686

Summary: Re: uptime and w utilities lie about real uptime
Product: Base System Reporter: Leo Bicknell <bicknell>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: FreeBSD-gnats-submit
Priority: Normal    
Version: 1.0-RELEASE   
Hardware: Any   
OS: Any   

Description Leo Bicknell 2001-09-20 15:30:03 UTC
 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
Comment 1 greid freebsd_committer freebsd_triage 2001-09-22 17:25:35 UTC
State Changed
From-To: open->closed

Part of another PR's Audit-Trail 


Comment 2 greid freebsd_committer freebsd_triage 2001-09-22 17:25:35 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled