403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/tuned/profiles/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/tuned/profiles/__pycache__/merger.cpython-39.pyc
a

,�g��@s(ddlZddlmZGdd�de�ZdS)�N)�reducec@s(eZdZdZdd�Zdd�Zdd�ZdS)	�Mergerz0
	Tool for merging multiple profiles into one.
	cCsdS)N�)�selfrr�9/usr/lib/python3.9/site-packages/tuned/profiles/merger.py�__init__	szMerger.__init__cCst|j|�}|S)z�
		Merge multiple configurations into one. If there are multiple units of the same type, option 'devices'
		is set for each unit with respect to eliminating any duplicate devices.
		)r�
_merge_two)rZconfigsZ
merged_configrrr�mergeszMerger.mergecCs�|j�|j�t|j���D�]z\}}|js6||jvrB||j|<q|j|j|_|j|j|_|j|j|_|j	dur�|j	|j|_	|j
dur�|j
|j|_
|jdur�|j|j|_|jdur�|j|j|_|j
dur�|j
|j|_
|jdu�r|jD]}|j|j�|d�q�d|_|dk�r�|j|j�dd�du�r�|j|j�dd�}|j|j�|j�||j|jd|j|jd<q|j|j�|j�q|S)z�
		Merge two profiles. The configuration of units with matching names are updated with options
		from the newer profile. If the 'replace' options of the newer unit is 'True', all options from the
		older unit are dropped.
		N�script)�options�update�listZunits�items�replace�typeZenabledZdevicesZdevices_udev_regexZ
cpuinfo_regexZuname_regexZ
script_preZscript_postZdrop�pop�get)rZ	profile_aZ	profile_bZ	unit_nameZunit�optionr
rrrrs6





$"zMerger._merge_twoN)�__name__�
__module__�__qualname__�__doc__rr	rrrrrrsr)�collections�	functoolsr�objectrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit