From f1c829573625134ebd0447ae1647ed3da235e573 Mon Sep 17 00:00:00 2001 From: Rod Smith Date: Mon, 20 Nov 2017 15:46:08 -0500 Subject: Fixed cpu_offlining test for systems with more than 9 cores --- bin/cpu_offlining | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3