Bug 74255 - patch to top.c fixing spurious idle time percentage miscalcuation
Summary: patch to top.c fixing spurious idle time percentage miscalcuation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: procps
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-18 19:25 UTC by Robert J. Osborne
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-09-18 19:32:04 UTC
Embargoed:


Attachments (Terms of Use)
top.c diff patch (1.31 KB, patch)
2002-09-18 19:26 UTC, Robert J. Osborne
no flags Details | Diff

Description Robert J. Osborne 2002-09-18 19:25:13 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020715

Description of problem:
An unsigned long is tested against being less than zero, causing gross
inaccuracies in idle percentage in top during heavy loads when the variable
"wraps" to a very high value.

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


How reproducible:
Sometimes

Steps to Reproduce:
1.Start top
2.Build several things, put a high load on slow processor system, etc.
3.Observe occasional in-excess-than 85000 % idle on top (single processor,
calcuation would be different for SMP boxen)
	

Additional info:  top.c diff file should be attached against procps-2.0.7

Comment 1 Robert J. Osborne 2002-09-18 19:26:03 UTC
Created attachment 76547 [details]
top.c diff patch

Comment 2 Alexander Larsson 2002-09-18 19:31:56 UTC
I think this bug is fixed in rawhide with the procps-2.0.7-idlebackwards patch.



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