Edit File: function_cpulist_invert.cpython-36.pyc
3 �<�e� � @ sH d dl Z d dlZddlmZ d dlmZ ejj� Z G dd� dej �ZdS )� N� )�base)�commandsc s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�cpulist_invertz� Inverts list of CPUs (makes its complement). For the complement it gets number of online CPUs from the /sys/devices/system/cpu/online, e.g. system with 4 CPUs (0-3), the inversion of list "0,2,3" will be "1" c s t t| �jdd� d S )Nr r )�superr �__init__)�self)� __class__� �-/usr/lib/python3.6/function_cpulist_invert.pyr s zcpulist_invert.__init__c s6 t t| �j|�sd S djdd� | jjdj|��D ��S )N�,c s s | ]}t |�V qd S )N)�str)�.0�vr r r � <genexpr> s z)cpulist_invert.execute.<locals>.<genexpr>z,,)r r �execute�joinZ_cmd)r �args)r r r r s zcpulist_invert.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r )r r r s r )�osZ tuned.logsZtuned� r Ztuned.utils.commandsr Zlogs�get�logZFunctionr r r r r �<module> s
Back to File Manager