diff options
Diffstat (limited to 'tools/perf/util/session.c')
-rw-r--r-- | tools/perf/util/session.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 1fc0c628683e..476caa129a20 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -504,6 +504,7 @@ static int flush_sample_queue(struct perf_session *s, | |||
504 | u64 limit = os->next_flush; | 504 | u64 limit = os->next_flush; |
505 | u64 last_ts = os->last_sample ? os->last_sample->timestamp : 0ULL; | 505 | u64 last_ts = os->last_sample ? os->last_sample->timestamp : 0ULL; |
506 | unsigned idx = 0, progress_next = os->nr_samples / 16; | 506 | unsigned idx = 0, progress_next = os->nr_samples / 16; |
507 | bool show_progress = limit == ULLONG_MAX; | ||
507 | int ret; | 508 | int ret; |
508 | 509 | ||
509 | if (!tool->ordered_samples || !limit) | 510 | if (!tool->ordered_samples || !limit) |
@@ -526,7 +527,7 @@ static int flush_sample_queue(struct perf_session *s, | |||
526 | os->last_flush = iter->timestamp; | 527 | os->last_flush = iter->timestamp; |
527 | list_del(&iter->list); | 528 | list_del(&iter->list); |
528 | list_add(&iter->list, &os->sample_cache); | 529 | list_add(&iter->list, &os->sample_cache); |
529 | if (++idx >= progress_next) { | 530 | if (show_progress && (++idx >= progress_next)) { |
530 | progress_next += os->nr_samples / 16; | 531 | progress_next += os->nr_samples / 16; |
531 | ui_progress__update(idx, os->nr_samples, | 532 | ui_progress__update(idx, os->nr_samples, |
532 | "Processing time ordered events..."); | 533 | "Processing time ordered events..."); |