Bug 229424 - top(1) initially shows invalid idle CPU percentage
Summary: top(1) initially shows invalid idle CPU percentage
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: i386 Any
: --- Affects Only Me
Assignee: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-29 23:12 UTC by Mark Johnston
Modified: 2018-06-30 18:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Johnston freebsd_committer freebsd_triage 2018-06-29 23:12:12 UTC
When I start top(1), the CPU line looks like this:

CPU:  3.0% user,  1.3% nice,  1.3% system,  0.1% interrupt, -66.8% idle

After the first update the value seems to be correct, but then it's displayed with two decimal digits instead of one:

CPU:  2.1% user,  0.5% nice,  1.1% system,  0.1% interrupt, 96.38% idle
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2018-06-29 23:12:41 UTC
This is r335792.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2018-06-30 14:01:19 UTC
Is an SMP or a UP system? I can't reproduce. Is this true for you with `-b` or only on the first iteration of an interactive display ?

> r335792

Did you mean a different revision?
Comment 3 Mark Johnston freebsd_committer freebsd_triage 2018-06-30 18:34:55 UTC
(In reply to Eitan Adler from comment #2)
Hmm, after a reboot I can't reproduce it anymore.  I have no idea why.  This is on i386 FWIW.  I'll reopen if it happens again.

> Did you mean a different revision?

No.