Bug #13311
uptime(1) dazed and confused for a minute after boot
Start date:
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
Description
If uptime
is invoked early in the boot process, it prints a message which is not quite right:
$ uptime 23:07:43 up 1 user, load average: 0.30, 0.08, 0.03
Critically, the uptime is entirely absent -- it should be present between "up" and "1 user". Once at least a whole minute has passed, the output is correctly rendered.
Files
Updated by Joshua M. Clulow 4 months ago
NB: This looks like it is a problem around here in the source: https://code.illumos.org/plugins/gitiles/illumos-gate/+/refs/heads/master/usr/src/cmd/w/w.c#303
Updated by Electric Monk 2 months ago
- % Done changed from 0 to 100
- Status changed from New to Closed
git commit 174b8e455f9a6974e69fa4e28792580acde0892d
commit 174b8e455f9a6974e69fa4e28792580acde0892d Author: Rick V <rick@snowlight.net> Date: 2020-12-29T19:40:30.000Z 13311 uptime(1) dazed and confused for a minute after boot Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@fingolfin.org>