o ¶žâcUã@sddlZdd„ZdS)éNcCsðtdƒ}tdƒ}|j}|j} |ƒ}t ¡}|dkrt d¡|ƒ}td|ƒ}| ¡}| ¡t |d¡t| ¡dƒ} t| ¡dƒ} t | ¡dƒ} t | | dƒ} t | | dƒ} | | krcn |  d¡|  d¡q| ¡| ¡| S)aï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. z /proc/uptimeTrz /proc/%d/statégà?) ÚopenÚreadÚosÚforkÚ_exitÚcloseÚwaitpidÚfloatÚsplitÚintÚseek)Ú uptime1_fileÚ uptime2_fileÚ read_uptime1Ú read_uptime2Ú uptime1_dataÚpidÚ uptime2_dataÚ stat_fileÚ stat_dataÚseconds_uptime1Úseconds_uptime2Ú jiffie_uptimeÚjiffies1Újiffies2©rú7/usr/lib/python3/dist-packages/landscape/lib/jiffies.pyÚdetect_jiffiess6      ãr)rrrrrrÚs