ok
Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/clcommon/ |
Current File : //proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/clcommon/clfunc.pyo |
� b=0Yc @ s� d d l Z d d l Z d d l Z d d l Z d d l Z d Z d � Z i d d 6d d 6d d 6d d 6Z d � Z d e j d � Z d e j d � Z d � Z d � Z d S( i����Ns /proc/lve/listc C s� y� t t d � } | j � } y t | d d � d g } Wn! t k r_ d d t g } n X| d d k r d d g } n Wn! t k r� d d t g } n X| S( Nt ri t OKs/ clcommon: get_lve_version: Can`t get data from i s+ clcommon: get_lve_version: Can`t open file ( t opent LVE_FILEt readlinest intt IndexErrort Nonet IOError( t ft linest LVE_VERSIONt LVE_VERISON( ( s3 /usr/lib/python2.7/site-packages/clcommon/clfunc.pyt get_lve_version s i t Ki t Mt Gt Tc C s� t | � } t j d � } t j d � } t j d t j � } | j | � } | j | � } | j | � } | d k s� | d k s� | d k r� | Sd S( sb check that val is a valid CPU limit (0-100 int or speed (% or MHZ\GHZ)) return val if ok a s \d{1,2}0?$s \d+(?:\.\d+)?%$s \d+(?:\.\d+)?(mhz|ghz)+$N( t strt ret compilet IGNORECASEt matchR ( t valt datat regexp_intt regexp_speedpt regexp_speedft p1t p2t p3( ( s3 /usr/lib/python2.7/site-packages/clcommon/clfunc.pyt validate_cpu s $i c C sI y t | � } Wn t k r$ d SX| | k o<