diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 4d416984c59d..311226edae12 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -1348,10 +1348,10 @@ static void hist_browser__update_pcnt_entries(struct hist_browser *hb) | |||
1348 | u64 nr_entries = 0; | 1348 | u64 nr_entries = 0; |
1349 | struct rb_node *nd = rb_first(&hb->hists->entries); | 1349 | struct rb_node *nd = rb_first(&hb->hists->entries); |
1350 | 1350 | ||
1351 | while (nd) { | 1351 | while ((nd = hists__filter_entries(nd, hb->hists, |
1352 | hb->min_pcnt)) != NULL) { | ||
1352 | nr_entries++; | 1353 | nr_entries++; |
1353 | nd = hists__filter_entries(rb_next(nd), hb->hists, | 1354 | nd = rb_next(nd); |
1354 | hb->min_pcnt); | ||
1355 | } | 1355 | } |
1356 | 1356 | ||
1357 | hb->nr_pcnt_entries = nr_entries; | 1357 | hb->nr_pcnt_entries = nr_entries; |