403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.190
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/landscape/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/landscape/lib/__pycache__/jiffies.cpython-312.pyc
�

�~�e]���ddlZd�Zy)�Nc���td�}td�}|j}|j}	|�}tj�}|dk(rtjd�|�}td|d�d��}|j�}|j�tj|d�t|j�d�}	t|j�d�}
t|j�d�}t||	zdz�}t||
zdz�}
||
k(rn$|jd�|jd���"|j�|j�|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/uptimerz/proc/�dz/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�jiffies2s              �7/usr/lib/python3/dist-packages/landscape/lib/jiffies.py�detect_jiffiesr sP����'�L���'�L��$�$�L��$�$�L�
�#�~��
�g�g�i���!�8��H�H�Q�K�#�~���6�#�a���.�/�	��N�N�$�	�����
�
�
�3����� 2� 2� 4�Q� 7�8���� 2� 2� 4�Q� 7�8���I�O�O�-�b�1�2�
��}��6��<�=���}��6��<�=���x������!�����!��;�>���������O�)rr �r!r�<module>r#s
��	�1r!

Youez - 2016 - github.com/yon3zu
LinuXploit