aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-06-05 19:31:01 +0200
committerIngo Molnar <[email protected]>2009-06-05 20:42:53 +0200
commit2f335a02b3c816e77e7df1d15b12e3bbb8f4c8f0 (patch)
tree2e4bd6040936f5ac8964f8034918c653d36dd53f /tools/perf/scripts/python/bin
parent1dba15e74aba5a90c1f2557f37e5d09f8a2df643 (diff)
perf top: Fix zero or negative refresh delay
If perf top is executed with a zero value for the refresh rate, we get a division by zero exception while computing samples_per_sec. Also a zero refresh rate is not possible, neither do we want to accept negative values. [ Impact: fix division by zero in perf top ] Cc: Peter Zijlstra <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Corey Ashford <[email protected]> Cc: Marcelo Tosatti <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Frederic Weisbecker <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions