Skip to content

Commit

Permalink
toplev: Fix counters initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Nov 20, 2023
1 parent 78a374b commit 8f07953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tl_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def __init__(self, known_cpus=(), nocheck=False, env=Env()):
newcounters = { "cpu": 4 }
else:
newcounters = { "cpu": 8 }
if self.counters is None:
if not self.counters:
self.counters = newcounters
if not nocheck and not self.env.forcecounters:
for j in ("cpu", "cpu_core", "cpu_atom"):
Expand Down

0 comments on commit 8f07953

Please sign in to comment.