diff options
author | Rod Smith <rod.smith@canonical.com> | 2017-11-20 15:46:08 -0500 |
---|---|---|
committer | Rod Smith <rod.smith@canonical.com> | 2017-11-20 15:46:08 -0500 |
commit | f1c829573625134ebd0447ae1647ed3da235e573 (patch) | |
tree | d7b68dd5afba519880ce902d98ba0362b217eef8 | |
parent | ed93ef954620f447e02aba4b99197767a637bfee (diff) |
Fixed cpu_offlining test for systems with more than 9 cores
-rwxr-xr-x | bin/cpu_offlining | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cpu_offlining b/bin/cpu_offlining index 0a673d8..5616e30 100755 --- a/bin/cpu_offlining +++ b/bin/cpu_offlining @@ -21,7 +21,7 @@ def is_cpu_online(cpu_name): # use the same heuristic as original `cpu_offlining` test used which is to # check if cpu is mentioned in /proc/interrupts with open('/proc/interrupts', 'rt') as f: - header = f.readline().lower() + header = f.readline().lower().split() return cpu_name in header |