public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Joe Korty <joe.korty@ccur.com>
Cc: linux-kernel@vger.kernel.org, Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: [PATCH] lockstat - fix numerical output rounding error
Date: Tue, 26 Aug 2008 10:37:21 +0200	[thread overview]
Message-ID: <20080826083721.GC27080@elte.hu> (raw)
In-Reply-To: <20080825211533.GA27943@tsunami.ccur.com>


* 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

      reply	other threads:[~2008-08-26  8:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-25 21:15 [PATCH] lockstat - fix numerical output rounding error Joe Korty
2008-08-26  8:37 ` Ingo Molnar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080826083721.GC27080@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=joe.korty@ccur.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox