|
|
@@ -1348,10 +1348,10 @@ static void hist_browser__update_pcnt_entries(struct hist_browser *hb)
|
|
|
u64 nr_entries = 0;
|
|
|
struct rb_node *nd = rb_first(&hb->hists->entries);
|
|
|
|
|
|
- while (nd) {
|
|
|
+ while ((nd = hists__filter_entries(nd, hb->hists,
|
|
|
+ hb->min_pcnt)) != NULL) {
|
|
|
nr_entries++;
|
|
|
- nd = hists__filter_entries(rb_next(nd), hb->hists,
|
|
|
- hb->min_pcnt);
|
|
|
+ nd = rb_next(nd);
|
|
|
}
|
|
|
|
|
|
hb->nr_pcnt_entries = nr_entries;
|