Skip to content

Commit

Permalink
toplev: Hide metrics with value 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Apr 21, 2016
1 parent 084b12c commit e7d5d30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,8 @@ def print_res(self, out, timestamp, title, match):
continue
desc = obj_desc(obj, self.olist[1 + 1:])
if obj.metric:
out.metric(obj.area if has(obj, 'area') else None,
if obj.val != 0:
out.metric(obj.area if has(obj, 'area') else None,
obj.name, val, timestamp,
desc,
title,
Expand Down

0 comments on commit e7d5d30

Please sign in to comment.