| Server IP : 77.50.203.18 / Your IP : 192.168.0.10 Web Server : Apache/2.4.62 (CentOS Stream) OpenSSL/3.5.7 mpm-itk/2.4.7-04 PHP/8.4.23 System : Linux web2 5.14.0-722.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 6 09:07:51 UTC 2026 x86_64 User : warsnews.ru ( 1001) PHP Version : 8.4.23 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/dnf/cli/__pycache__/ |
Upload File : |
a
�!c� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZ ddl
Z
ddlZddlZe�
ejd �Ze
�d�Zd d
� Zdd� Zd
d� Zdd� ZdS )z/Various utility functions, and a utility class.� )�absolute_import)�unicode_literals)�
format_number)�_N�
SC_CLK_TCK�dnfc C s t | �t S )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)Zjiffies� r
�1/usr/lib/python3.9/site-packages/dnf/cli/utils.py�jiffies_to_seconds s r c C sj | dkr0d| d | d d | d d | d f S | dkrVd| d | d d | d f S d| d | d f S )a Return 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�Q z%d day(s) %d:%02d:%02di � �<