KOKINIO - MANAGER
Edit File: progress.cpython-312.opt-1.pyc
� �(f� � � � d dl mZ d dlmZmZ d dlmZ d dlmZ d dl m Z d dl Z d dlZd dl Z G d� dej j � Zy) � )�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� Zy)�MultiFileProgressMeterz"Multi-file download progress meter�FAILED�SKIPPED�MIRROR�DRPMg333333�?g �?g @c �* � || _ || _ || _ || _ d| _ d| _ t j j � | _ d| _ d| _ d| _ g | _ i | _ d| _ d| _ d| _ d| _ d| _ y)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.12/site-packages/dnf/cli/progress.py�__init__zMultiFileProgressMeter.__init__&