| Server IP : 43.141.49.92 / Your IP : 113.219.202.141 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.11/site-packages/dnf/cli/__pycache__/ |
Upload File : |
�
8O�d � �4 � d dl mZ d dlmZ dd�Zd d�Zd� ZdS )
� )�unicode_literals)�long� c �: � g d�}|rd}nd}d}d}t |� � dz
}| �d} | |k r||k r|dz }| |z } | |k r||k �t | t � � st | t � � rd }n| d
k rd}nd}|t | pd� � ||| 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*
) r �k�M�G�T�P�E�Z�Yg @�@g �@i� r � Ng 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.11/site-packages/dnf/cli/format.py�
format_numberr s� � �� � �G�
� �&�4�4��$�
�F�
�E��G���q� �I�
�~���
�6�/�/�e�i�/�/������$��� �6�/�/�e�i�/�/� �&�#��� �*�V�T�":�":� ���� �$��� ������U�6�;�Q�'�'�����?�?�@� c � � | �| dk r|rdS dS | t d� � k rdS t | � � } | 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*
Nr z--:--:--z--:--�inf�Infinite�<