/usr/lib/python3/dist-packages/landscape/lib/__pycache__
Edit: /usr/lib/python3/dist-packages/landscape/lib/__pycache__/jiffies.cpython-310.pyc (1352B)
o
¶žâcU ã @ s d dl Z dd„ ZdS )é Nc C sð t dƒ} t dƒ}| j}|j} |ƒ }t ¡ }|dkrt d¡ |ƒ }t d| ƒ}| ¡ }| ¡ 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/uptimeTr z
/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_jiffies s6
ãr )r r r r r r Ú
s