From 0694ab679292677509e302e2d077a3b4d01ab746 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Thu, 1 Jun 2017 14:29:19 +0100 Subject: [PATCH] LinuxDevice: rename get_number_of_online_cpus arg Renamed "c" to "core", as that gets passed as a keyword argument inside get_runtime_parameters(). --- wlauto/common/linux/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index eb44a95c..ca5fc7b5 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -477,8 +477,8 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method else: raise ValueError(c) - def get_number_of_online_cpus(self, c): - return len(self.get_online_cpus(c)) + def get_number_of_online_cpus(self, core): + return len(self.get_online_cpus(core)) def set_number_of_online_cpus(self, core, number): core_ids = [i for i, c in enumerate(self.core_names) if c == core]