Skip to content

Commit

Permalink
toplev: Always reset threshold first in interval mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Apr 21, 2016
1 parent 5fa293c commit c669696
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,8 @@ def compute(self, res, rev, valstats, env, match, stat):
# step 1: compute
for obj in self.olist:
obj.errcount = 0
if not obj.metric:
obj.thresh = False

if not match(obj):
continue
Expand Down

0 comments on commit c669696

Please sign in to comment.