From c8890a0218a404c3f12e54178e59b0f2d2fd705e Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Thu, 27 Oct 2011 09:19:48 -0200 Subject: [PATCH] --- yaml --- r: 275105 b: refs/heads/master c: 7928631a66c884b18f827fbd1b63cd80198f004b h: refs/heads/master i: 275103: c9b5e78f0880f8d546cec85adb6609ff719f725b v: v3 --- [refs] | 2 +- trunk/tools/perf/util/hist.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 2863d51ca24d..02ee5abff138 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a9072bc0b0af991e274b699f17bc50cf201e377b +refs/heads/master: 7928631a66c884b18f827fbd1b63cd80198f004b diff --git a/trunk/tools/perf/util/hist.c b/trunk/tools/perf/util/hist.c index f6a993963a1e..a36a3fa81ffb 100644 --- a/trunk/tools/perf/util/hist.c +++ b/trunk/tools/perf/util/hist.c @@ -365,7 +365,6 @@ static void __hists__collapse_resort(struct hists *hists, bool threaded) root = hists__get_rotate_entries_in(hists); next = rb_first(root); - hists->stats.total_period = 0; while (next) { n = rb_entry(next, struct hist_entry, rb_node_in); @@ -379,7 +378,6 @@ static void __hists__collapse_resort(struct hists *hists, bool threaded) * been set by, say, the hist_browser. */ hists__apply_filters(hists, n); - hists__inc_nr_entries(hists, n); } } } @@ -442,6 +440,7 @@ static void __hists__output_resort(struct hists *hists, bool threaded) hists->entries = RB_ROOT; hists->nr_entries = 0; + hists->stats.total_period = 0; hists__reset_col_len(hists); while (next) {