Bug 78901 - `top` SMP CPU stats - very long strings
`top` SMP CPU stats - very long strings
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: procps (Show other bugs)
7.3
i386 Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-03 04:05 EST by Alec Voropay
Modified: 2005-10-31 17:00 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-02-11 08:20:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alec Voropay 2002-12-03 04:05:48 EST
Description of Problem:
On SMP platforms `top` produces very long (hihg precision percentage)
CPU load statistics : 3..4 digits after comma. So, resulting
string lenght >80 colums

Version-Release number of selected component (if applicable):
procps 2.0.10

How Reproducible:
`top` on SMP platform in "Full SMP CPU Stats"

Steps to Reproduce:
1. run `top` on SMP platform
2. press "C" to enter "Full SMP CPU Stats"
3. 

Actual Results:
 12:02:18  up 14 days, 21:44,  2 users,  load average: 0.26, 0.39, 0.52
126 processes: 125 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.3% user,  0.2% system,  0.0% nice, 98.37% iowait,  1.227% idle
CPU1 states:  0.1% user,  0.2% system,  0.0% nice, 98.37% iowait,  1.229% idle


Expected Results:
should be ~1 digit after comma

Additional Information:
In "Collapsed SMP CPU Stats" it works OK.
Comment 1 Alexander Larsson 2002-12-03 05:55:04 EST
Hmm. Those percent calculation seem totally bogus...

Note You need to log in before you can comment on or make changes to this bug.