| Server IP : 43.141.50.122 / Your IP : 113.219.202.44 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� � � � d dl mZ d dlmZmZ d dlmZ d dlmZ d dl m Z d dl
Z
d dlZd dl
Z G d� dej j � � ZdS ) � )�unicode_literals)�
format_number�format_time)�_term_width)�unicode)�timeNc � � e Zd ZdZej j dej j dej j dej j diZ
ej dddfd �Z
d
� Zdd�Zd
� Zd� Zd� ZdS )�MultiFileProgressMeterz"Multi-file download progress meter�FAILED�SKIPPED�MIRROR�DRPMg333333�?g �?g @c �, � || _ || _ || _ || _ d| _ d| _ t j � � � | _ d| _ d| _
d| _ g | _ i | _
d| _ d| _ d| _ d| _ d| _ dS )z�Creates a new progress meter instance
update_period -- how often to update the progress bar
tick_period -- how fast to cycle through concurrent downloads
rate_average -- time constant for average speed calculation
r N)�fo�
update_period�tick_period�rate_average�unknown_progres�
total_drpm�sys�stdout�isatty� done_drpm�
done_files� done_size�active�state� last_time� last_size�rate�total_files�
total_size)�selfr r r r s �5/usr/lib/python3.11/site-packages/dnf/cli/progress.py�__init__zMultiFileProgressMeter.__init__&