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 - [EMAIL PROTECTED]
Systems Engineer - Internetworking Engineer - CCIE 3440
Read TMBG List - [EMAIL PROTECTED], www.tmbg.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to