perf: Fix perf lock bad rate
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 6 May 2010 02:55:22 +0000 (04:55 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 9 May 2010 11:45:29 +0000 (13:45 +0200)
commit5efe08cf685f33f562566dc68b6077b6f6a4f706
treeae792d0ba092caed622825a39fec84eb6c67174c
parent84c7a21791eb2e962a27e19bab5b77d5d9e13a34
perf: Fix perf lock bad rate

Fix the cast made to get the bad rate. It is made in the result
instead of the operands. We need the operands to be cast in double,
otherwise the result will always be zero.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
tools/perf/builtin-lock.c