| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/dnf/cli/__pycache__/ |
Upload File : |
a
�!c � @ s8 d dl mZ d dlmZ ddd�Zddd�Zdd � Zd
S )
� )�unicode_literals)�long� c C s� g d�}|rd}nd}d}d}t |�d }| du r6d} | |krX||k rX|d }| | } q6t| t�slt| t�rrd }n| d
k r�d}nd}|t| p�d�||| f 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) �numberZSI�spaceZsymbols�stepZthresh�depthZ max_depth�format� r �2/usr/lib/python3.9/site-packages/dnf/cli/format.py�
format_number s"