Skip to content
Commit 2189459d authored by Joe Korty's avatar Joe Korty Committed by Ingo Molnar
Browse files

lockstat: fix numerical output rounding error



Fix rounding error in /proc/lock_stat numerical output.

On occasion the two digit fractional part contains the three
digit value '100'.  This is due to a bug in the rounding algorithm
which pushes values in the range '95..99' to '100' rather than
to '00' + an increment to the integer part.  For example,

	- 123456.100      old display
	+ 123457.00	  new display

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 83097aca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment