ok
Direktori : /lib/python2.7/site-packages/tuned/profiles/functions/ |
Current File : //lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyc |
� ��\c @ sd d d l Z d d l Z d d l m Z d d l m Z e j j � Z d e j f d � � YZ d S( i����Ni ( t base( t commandst cpulist_invertc B s e Z d Z d � Z d � Z RS( s� 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 C s t t | � j d d � d S( NR i ( t superR t __init__( t self( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyR s c C sH t t | � j | � s d Sd j d � | j j d j | � � D� � S( Nt ,c s s | ] } t | � Vq d S( N( t str( t .0t v( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pys <genexpr> s s ,,( R R t executet Nonet joint _cmd( R t args( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyR s ( t __name__t __module__t __doc__R R ( ( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyR s ( t ost tuned.logst tunedt R t tuned.utils.commandsR t logst gett logt FunctionR ( ( ( sT /usr/lib/python2.7/site-packages/tuned/profiles/functions/function_cpulist_invert.pyt <module> s