diff options
Diffstat (limited to 'tools/perf/ui/gtk/hists.c')
-rw-r--r-- | tools/perf/ui/gtk/hists.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/ui/gtk/hists.c b/tools/perf/ui/gtk/hists.c index 7e5da4af98d8..03d6812d25dd 100644 --- a/tools/perf/ui/gtk/hists.c +++ b/tools/perf/ui/gtk/hists.c | |||
@@ -226,14 +226,12 @@ static void perf_gtk__show_hists(GtkWidget *window, struct hists *hists, | |||
226 | struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); | 226 | struct hist_entry *h = rb_entry(nd, struct hist_entry, rb_node); |
227 | GtkTreeIter iter; | 227 | GtkTreeIter iter; |
228 | u64 total = hists__total_period(h->hists); | 228 | u64 total = hists__total_period(h->hists); |
229 | float percent = 0.0; | 229 | float percent; |
230 | 230 | ||
231 | if (h->filtered) | 231 | if (h->filtered) |
232 | continue; | 232 | continue; |
233 | 233 | ||
234 | if (total) | 234 | percent = hist_entry__get_percent_limit(h); |
235 | percent = h->stat.period * 100.0 / total; | ||
236 | |||
237 | if (percent < min_pcnt) | 235 | if (percent < min_pcnt) |
238 | continue; | 236 | continue; |
239 | 237 | ||