summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/ui/progress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/progress.c b/tools/perf/ui/progress.c
index a0f24c7115c5..a9c15804b1f6 100644
--- a/tools/perf/ui/progress.c
+++ b/tools/perf/ui/progress.c
@@ -25,7 +25,7 @@ void ui_progress__update(struct ui_progress *p, u64 adv)
25void ui_progress__init(struct ui_progress *p, u64 total, const char *title) 25void ui_progress__init(struct ui_progress *p, u64 total, const char *title)
26{ 26{
27 p->curr = 0; 27 p->curr = 0;
28 p->next = p->step = total / 16; 28 p->next = p->step = total / 16 ?: 1;
29 p->total = total; 29 p->total = total;
30 p->title = title; 30 p->title = title;
31 31