Bug 148922 - uptime(1) command output inconsistency after boot
Summary: uptime(1) command output inconsistency after boot
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-25 13:10 UTC by tedm
Modified: 2018-01-03 05:14 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tedm 2010-07-25 13:10:04 UTC
	

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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:42 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped