/usr/share/cagefs-skeleton/lib/python3.9/site-packages/glances/plugins/__pycache__
a ���c�= � @ s� d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z ddl mZ ddlZdd d �dd d �dd d �dd d �dd d �ddd �ddd �ddd �dd d �ddd �ddd �d�Z ddddd�iZdd d!d"�d#d$d!d"�gZG d%d&� d&e�ZdS )'zNetwork plugin.� )�unicode_literalsN)�getTimeSinceLastUpdate)� GlancesPlugin)�n)�loggerzInterface name.�string)�description�unitz Interface alias name (optional).z,The received/input rate (in bit per second).Zbpsz)The sent/output rate (in bit per second).z6The cumulative received+sent rate (in bit per second).z@The number of bytes received through the interface (cumulative).�bytesz<The number of bytes sent through the interface (cumulative).zTThe cumulative number of bytes reveived and sent through the interface (cumulative).zSMaximum interface speed (in bit per second). Can return 0 on some operating-system.zIs the interface up ?�boolz$Number of seconds since last update.Zseconds)�interface_name�alias�rx�tx�cx� cumulative_rx� cumulative_tx� cumulative_cx�speed�is_up�time_since_update�defaultz1.3.6.1.2.1.2.2.1.2z1.3.6.1.2.1.2.2.1.10z1.3.6.1.2.1.2.2.1.16)r r r r zDownload rate per secondzbit/s)�namer Zy_unitr zUpload rate per secondc sN e Zd ZdZd � fdd� Zdd� Zejdd� �Z� fd d �Z ddd�Z � ZS )�Pluginz1Glances network plugin. stats is a list Nc sf t t| �j||ttg d� d| _|dur>|j| jddd�| _nd| _ddg| _ | � � | j�d � dS ) zInit the plugin.)�args�config�items_history_list�fields_descriptionZstats_init_valueTN� hide_zeroF)r r r r ) �superr �__init__r r Z display_curseZget_bool_valueZplugin_namer �hide_zero_fields�updateZ refresh_timer�set)�selfr r �� __class__� �C/usr/lib/python3.9/site-packages/glances/plugins/glances_network.pyr N s � zPlugin.__init__c C s dS )zReturn the key of the list.r r'