diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-top.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 37512e936235..a1b1d10912dc 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -686,6 +686,8 @@ static void handle_keypress(int c) | |||
686 | switch (c) { | 686 | switch (c) { |
687 | case 'd': | 687 | case 'd': |
688 | prompt_integer(&delay_secs, "Enter display delay"); | 688 | prompt_integer(&delay_secs, "Enter display delay"); |
689 | if (delay_secs < 1) | ||
690 | delay_secs = 1; | ||
689 | break; | 691 | break; |
690 | case 'e': | 692 | case 'e': |
691 | prompt_integer(&print_entries, "Enter display entries (lines)"); | 693 | prompt_integer(&print_entries, "Enter display entries (lines)"); |