summaryrefslogtreecommitdiff
path: root/tools/perf/util/ui/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/ui/progress.c')
-rw-r--r--tools/perf/util/ui/progress.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/progress.c b/tools/perf/util/ui/progress.c
index 295e366b6311..13aa64e50e11 100644
--- a/tools/perf/util/ui/progress.c
+++ b/tools/perf/util/ui/progress.c
@@ -14,6 +14,9 @@ void ui_progress__update(u64 curr, u64 total, const char *title)
if (use_browser <= 0)
return;
+ if (total == 0)
+ return;
+
ui__refresh_dimensions(true);
pthread_mutex_lock(&ui__lock);
y = SLtt_Screen_Rows / 2 - 2;