diff options
Diffstat (limited to 'tools/perf/util/ui/progress.c')
-rw-r--r-- | tools/perf/util/ui/progress.c | 3 |
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) | |||
14 | if (use_browser <= 0) | 14 | if (use_browser <= 0) |
15 | return; | 15 | return; |
16 | 16 | ||
17 | if (total == 0) | ||
18 | return; | ||
19 | |||
17 | ui__refresh_dimensions(true); | 20 | ui__refresh_dimensions(true); |
18 | pthread_mutex_lock(&ui__lock); | 21 | pthread_mutex_lock(&ui__lock); |
19 | y = SLtt_Screen_Rows / 2 - 2; | 22 | y = SLtt_Screen_Rows / 2 - 2; |