Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/front-web/build/assets/styles/functions.tar
Назад
__pycache__/function_assertion_non_equal.cpython-39.pyc 0000644 00000002466 15111647167 0017403 0 ustar 00 a ,�g+ � @ sT d dl Z d dlZddlmZ d dlmZ d dlmZ ej � � ZG dd� dej�Z dS )� N� )�base)�commands)�InvalidProfileExceptionc s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�assertion_non_equalz� Assertion non equal: compares argument 2 with argument 3. If they match it logs text from argument 1 and throws InvalidProfileException. This exception will abort profile loading. c s t t| ��ddd� d S )Nr � )�superr �__init__)�self�� __class__� �Y/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_assertion_non_equal.pyr s zassertion_non_equal.__init__c sX t t| ��|�sd S |d |d krTt�d|d |d |d f � td|d ��d S )Nr � z#assertion '%s' failed: '%s' == '%s'r zAssertion '%s' failed.)r r �execute�log�errorr )r �argsr r r r s zassertion_non_equal.execute)�__name__� __module__�__qualname__�__doc__r r � __classcell__r r r r r s r )�osZ tuned.logsZtuned� r Ztuned.utils.commandsr Ztuned.profiles.exceptionsr Zlogs�getr ZFunctionr r r r r �<module> s __pycache__/function_calc_isolated_cores.cpython-39.opt-1.pyc 0000644 00000003543 15111647167 0020250 0 ustar 00 a ,�gk � @ sP d dl Z d dlZd dlZddlmZ d dlmZ ej� � Z G dd� dej�ZdS )� N� )�basec s, e Zd ZdZ� fdd�Z� fdd�Z� ZS )�calc_isolated_coresz� Calculates and returns isolated cores. The argument specifies how many cores per socket reserve for housekeeping. If not specified, 1 core per socket is reserved for housekeeping and the rest is isolated. c s t t| ��dd� d S )Nr r )�superr �__init__)�self�� __class__� �Y/usr/lib/python3.9/site-packages/tuned/profiles/functions/function_calc_isolated_cores.pyr s zcalc_isolated_cores.__init__c sF t t| ��|�sd S d}t|�dkrh|d �� r@t|d �dk r\t�d|d | jf � d S t|d �}i }t � tj� tjd��D ]|}tj�|�dd � }|�� r�tj� |d�}tj�|�s�t�d||f � q�| j�|��� }|�� r�|�|g �|g ||<