From 037b1da27631cfba54f32bb02c2fd002a1df9cda Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Sat, 17 Oct 2009 18:08:29 +0200 Subject: [PATCH] --- yaml --- r: 167785 b: refs/heads/master c: dc79959aaf80e518741657a702fa2727c86c1189 h: refs/heads/master i: 167783: 21e40309a0f6166aceafa414fd9550299a4fe5ea v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-top.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 9f2e8852e474..c43a73ff818e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 210f9cb2cf2effca690271085f4bd6a3ea286e6c +refs/heads/master: dc79959aaf80e518741657a702fa2727c86c1189 diff --git a/trunk/tools/perf/builtin-top.c b/trunk/tools/perf/builtin-top.c index 37512e936235..a1b1d10912dc 100644 --- a/trunk/tools/perf/builtin-top.c +++ b/trunk/tools/perf/builtin-top.c @@ -686,6 +686,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)");