diff options
| -rw-r--r-- | tools/perf/ui/browsers/hists.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 92d128f3acdc..169224c31586 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -812,10 +812,7 @@ static struct rb_node *hists__filter_entries(struct rb_node *nd,  		if (total)  			percent = h->stat.period * 100.0 / total; -		if (percent < min_pcnt) -			return NULL; - -		if (!h->filtered) +		if (!h->filtered && percent >= min_pcnt)  			return nd;  		nd = rb_next(nd);  | 
