aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/perf_counter/builtin-top.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c
index ff7e13c4647c..b2f480b5a134 100644
--- a/Documentation/perf_counter/builtin-top.c
+++ b/Documentation/perf_counter/builtin-top.c
@@ -693,6 +693,9 @@ int cmd_top(int argc, const char **argv, const char *prefix)
693 event_id[0] = 0; 693 event_id[0] = 0;
694 } 694 }
695 695
696 if (delay_secs < 1)
697 delay_secs = 1;
698
696 for (counter = 0; counter < nr_counters; counter++) { 699 for (counter = 0; counter < nr_counters; counter++) {
697 if (event_count[counter]) 700 if (event_count[counter])
698 continue; 701 continue;