| 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 : |
�
�(f � �2 � d dl mZ d dlmZ dd�Zdd�Zd� Zy) � )�unicode_literals)�longc � � g d�}|rd}nd}d}d}t |� dz
}| �d} | |kD r||k r|dz }| |z } | |kD r||k r�t | t � st | t � rd}n
| d k rd
}nd}|t | xs d� ||| fz S )a� Return a human-readable metric-like string representation
of a number.
:param number: the number to be converted to a human-readable form
:param SI: If is 0, this function will use the convention
that 1 kilobyte = 1024 bytes, otherwise, the convention
that 1 kilobyte = 1000 bytes will be used
:param space: string that will be placed between the number
and the SI prefix
:return: a human-readable metric-like string representation of
*number*
) � �k�M�G�T�P�E�Z�Yg @�@g �@i� r � g z%i%s%sgfffff�#@z%.1f%s%sz%.0f%s%s)�len�
isinstance�intr �float) �number�SI�space�symbols�step�thresh�depth� max_depth�formats �3/usr/lib/python3.12/site-packages/dnf/cli/format.py�
format_numberr s� � ��G�
�&�4��$�
�F�
�E��G��q� �I�
�~���
�6�/�e�i�/������$��� �6�/�e�i�/� �&�#��*�V�T�":��� �$�� �����U�6�;�Q�'�����?�?�@� c � � | �| dk r|ryy| t d� k( ryt | � } | dz }| dz } |r|dz }|dz }d||| fz S d|| fz S ) a� Return a human-readable string representation of a number
of seconds. The string will show seconds, minutes, and
optionally hours.
:param seconds: the number of seconds to convert to a
human-readable form
:param use_hours: If use_hours is 0, the representation will
be in minutes and seconds. Otherwise, it will be in hours,
minutes, and seconds
:return: a human-readable string representation of *seconds*
r z--:--:--z--:--�inf�Infinite�<