Re: [PATCH] lockstat - fix numerical output rounding error

From: Ingo Molnar
Date: Tue Aug 26 2008 - 04:37:48 EST



* Joe Korty <joe.korty@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/