Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269121
b: refs/heads/master
c: c64550c
h: refs/heads/master
i:
  269119: b1bb011
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Oct 20, 2011
1 parent 4edfd0f commit 91cab2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2cf9cebf0878e384630f6fd5e1abd830c0cd99b3
refs/heads/master: c64550cfddfdbd7a6f9d5ffb37382a05d7f0306b
11 changes: 8 additions & 3 deletions trunk/tools/perf/util/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,16 @@ static void hist_entry__decay(struct hist_entry *he)

static bool hists__decay_entry(struct hists *hists, struct hist_entry *he)
{
if (he->period == 0)
u64 prev_period = he->period;

if (prev_period == 0)
return true;
hists->stats.total_period -= he->period;

hist_entry__decay(he);
hists->stats.total_period += he->period;

if (!he->filtered)
hists->stats.total_period -= prev_period - he->period;

return he->period == 0;
}

Expand Down

0 comments on commit 91cab2e

Please sign in to comment.