Skip to content

Commit

Permalink
toplev: linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Sep 26, 2023
1 parent 05417f4 commit 6a7066e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toplev.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ def __init__(self, pmu):
self.slots_available = False
self.emap = None
if (pmu is None
or pmu not in cpu.counters
or pmu not in cpu.standard_counters
or pmu not in cpu.limit4_counters):
or pmu not in cpu.counters
or pmu not in cpu.standard_counters
or pmu not in cpu.limit4_counters):
pmu = "cpu"
self.standard_counters = cpu.standard_counters[pmu]
self.counters = cpu.counters[pmu]
Expand Down

0 comments on commit 6a7066e

Please sign in to comment.