Merge branch 'perf/urgent' into perf/core
[linux-2.6.git] / tools / perf / builtin-top.c
index 2d8806b..cc66286 100644 (file)
@@ -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)");