lkml.org 
[lkml]   [2008]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lockstat - fix numerical output rounding error

* Joe Korty <joe.korty@ccur.com> wrote:

> 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

applied to tip/core/urgent - thanks Joe!

(btw., please include Signed-off-by lines in your patches in the future)

Ingo


\
 
 \ /
  Last update: 2008-08-26 10:39    [W:0.057 / U:6.548 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site