Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/landscape/lib/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/landscape/lib/jiffies.pyc

ó
ÍÿŠTc@sddlZd„ZdS(iÿÿÿÿNcCsStdƒ}tdƒ}|j}|j}xtr:|ƒ}tjƒ}|dkrdtjdƒn|ƒ}td|ƒ}|jƒ}|jƒtj|dƒt|j	ƒdƒ}	t|j	ƒdƒ}
t
|j	ƒdƒ}t
||	dƒ}t
||
dƒ}
||
krPn|jdƒ|jdƒq-W|jƒ|jƒ|S(sïReturns the number of jiffies per second for this machine.

    A jiffy is a value used by the kernel to report certain time-based
    events.  Jiffies occur N times per second where N varies depending
    on the hardware the kernel is running on.  This function gets the
    uptime for the current process, forks a child process and gets the
    uptime again; finally, using the running time of the child process
    compared with the uptimes to determine number of jiffies per
    second.
    s/proc/uptimeis
/proc/%d/statigà?(topentreadtTruetostforkt_exittclosetwaitpidtfloattsplittinttseek(tuptime1_filetuptime2_filetread_uptime1tread_uptime2tuptime1_datatpidtuptime2_datat	stat_filet	stat_datatseconds_uptime1tseconds_uptime2t
jiffie_uptimetjiffies1tjiffies2((s9/usr/lib/python2.7/dist-packages/landscape/lib/jiffies.pytdetect_jiffiess4					



(RR(((s9/usr/lib/python2.7/dist-packages/landscape/lib/jiffies.pyt<module>s