summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-10-20 07:51:41 +0200
committerIngo Molnar <mingo@elte.hu>2009-10-20 07:51:44 +0200
commitc258449bc9d286e2ee6546c9cdf911e96cbc126a (patch)
tree51d389391bf6bef4be756652e401823f8171656e /tools/perf/builtin-top.c
parent79b9ad361be8c6f3eeea97dd3883e8bcfa989333 (diff)
parent2e600d01c131ee189f55ca1879cd364b9e056df8 (diff)
downloadblackbird-op-linux-c258449bc9d286e2ee6546c9cdf911e96cbc126a.tar.gz
blackbird-op-linux-c258449bc9d286e2ee6546c9cdf911e96cbc126a.zip
Merge branch 'perf/urgent' into perf/core
Merge reason: Queue up dependent patch. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 2d8806bac258..cc6628630303 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -663,6 +663,8 @@ static void handle_keypress(int c)
switch (c) {
case 'd':
prompt_integer(&delay_secs, "Enter display delay");
+ if (delay_secs < 1)
+ delay_secs = 1;
break;
case 'e':
prompt_integer(&print_entries, "Enter display entries (lines)");
OpenPOWER on IntegriCloud