]> git.karo-electronics.de Git - linux-beck.git/commit
perf ui progress: Fix divide by zero
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 12 Nov 2011 00:08:07 +0000 (22:08 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Nov 2011 12:36:57 +0000 (10:36 -0200)
commit18b552350515188a732db6ccdb81e9cefb8b58c9
treeb72dd1ee805cfc7621c29f63761704b3e64dd2c2
parented80f5813fd6ecc6d74250681910a4214f699d4e
perf ui progress: Fix divide by zero

Happens in a perf.data file where one of the events had no samples.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-j7st3oyiotvfxqde2nc41kxb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/progress.c