aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-10-20 01:51:41 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-20 01:51:44 -0400
commitc258449bc9d286e2ee6546c9cdf911e96cbc126a (patch)
tree51d389391bf6bef4be756652e401823f8171656e /tools/perf/builtin-top.c
parent79b9ad361be8c6f3eeea97dd3883e8bcfa989333 (diff)
parent2e600d01c131ee189f55ca1879cd364b9e056df8 (diff)
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)
663 switch (c) { 663 switch (c) {
664 case 'd': 664 case 'd':
665 prompt_integer(&delay_secs, "Enter display delay"); 665 prompt_integer(&delay_secs, "Enter display delay");
666 if (delay_secs < 1)
667 delay_secs = 1;
666 break; 668 break;
667 case 'e': 669 case 'e':
668 prompt_integer(&print_entries, "Enter display entries (lines)"); 670 prompt_integer(&print_entries, "Enter display entries (lines)");