From tedm@ipinc.net  Sun Jul 25 12:07:32 2010
Return-Path: <tedm@ipinc.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6C7921065672
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2010 12:07:32 +0000 (UTC)
	(envelope-from tedm@ipinc.net)
Received: from mail.ipinc.net (mail.ipinc.net [65.75.192.11])
	by mx1.freebsd.org (Postfix) with ESMTP id 597D88FC1F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2010 12:07:32 +0000 (UTC)
Received: from dns2.ipinc.net (dns2.ipinc.net [65.75.192.254])
	by mail.ipinc.net (8.14.4/8.14.4) with ESMTP id o6PBTQLl073859
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2010 04:29:26 -0700 (PDT)
	(envelope-from tedm@ipinc.net)
Received: from dns2.ipinc.net (localhost [127.0.0.1])
	by dns2.ipinc.net (8.14.3/8.14.3) with ESMTP id o6PBUr6u002603
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Jul 2010 04:30:53 -0700 (PDT)
	(envelope-from tedm@ipinc.net)
Received: (from root@localhost)
	by dns2.ipinc.net (8.14.3/8.14.3/Submit) id o6PBUrBk002602;
	Sun, 25 Jul 2010 04:30:53 -0700 (PDT)
	(envelope-from tedm)
Message-Id: <201007251130.o6PBUrBk002602@dns2.ipinc.net>
Date: Sun, 25 Jul 2010 04:30:53 -0700 (PDT)
From: tedm@ipinc.net
Reply-To: tedm@ipinc.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: uptime command output inconsistency after boot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         148922
>Category:       bin
>Synopsis:       uptime(1) command output inconsistency after boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 25 12:10:04 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun Jul 25 22:07:21 UTC 2010
>Originator:     Ted Mittelstaedt
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
Internet Partners, Inc.
>Environment:
System: FreeBSD dns2.ipinc.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
	

After boot, the uptime command produces inconsistent output.

Here is output from a machine that was just booted a few minutes ago:

 4:16AM  up  3:06, 1 user, load averages: 0.02, 0.08, 0.07

Here is output from an 8.0 system that has been up for a while:

 4:41PM  up 1 day, 10:22, 1 user, load averages: 0.00, 0.00, 0.00

Here is output from a FreeBSD 7.3 system that was rebooted a few minutes ago:

 4:06AM  up 8 mins, 1 user, load averages: 0.01, 0.10, 0.07

As you can see, the "minutes" field is missing from the 8.0 system that
had been rebooted recently.  The bug must have been introduced when the
XX:XX time printout was added to the uptime output.

>How-To-Repeat:

run uptime on a recently booted system.  Run uptime on a system that has been
up for a day.  Compare the results.
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:
