Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/tuned/profiles/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyc
�
��\c@sdddlZddlZddlmZddlmZejj�Z	dej
fd��YZdS(i����Ni(tbase(tcommandstcpulist_presentcBs eZdZd�Zd�ZRS(sY
	Checks whether CPUs from list are present, returns list containing
	only present CPUs
	cCstt|�jdd�dS(NRi(tsuperRt__init__(tself((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
scCs�tt|�j|�sdS|jjdj|��}|jj|jjd��}djd�tt	t
|�jt
|����D��S(Ns,,s/sys/devices/system/cpu/presentt,css|]}t|�VqdS(N(tstr(t.0tv((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pys	<genexpr>s(RRtexecutetNonet_cmdtcpulist_unpacktjoint	read_filetsortedtlisttsettintersection(Rtargstcpustpresent((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyR
s
(t__name__t
__module__t__doc__RR
(((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyRs	(tost
tuned.logsttunedtRttuned.utils.commandsRtlogstgettlogtFunctionR(((sU/usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_present.pyt<module>s


ZeroDay Forums Mini