| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/dstat/__pycache__/ |
Upload File : |
�
u�>]& � � � G d � de � Zy)c �. � e Zd ZdZd� Zd� Zd� Zd� Zd� Zy)�dstat_pluginz<
Number of packets received and send per interface.
c � � d| _ d| _ d| _ d| _ t j d� | _ | j d� d| _ y )N)z#recvz#send�d� i� z^(lo|bond\d+|face|.+\.\d+)$z
/proc/net/dev� ) �nick�type�width�scale�re�compile�totalfilter�open�cols)�selfs �%/usr/share/dstat/dstat_net_packets.py�__init__zdstat_plugin.__init__ sC � �&�� ��� ���
���
��:�:�&C�D���� � �/�"��� � c � � g }| j d�� D ]= }t |� dk r�|d dk( r |d dk( r�#|d }|dvs�-|j |� �? |j � |D ] }|j |� � |S ) N�:��replace� r �0�
� )�lo�face)�
splitlines�len�append�sort)r �objlist�ret�l�name�items r �discoverzdstat_plugin.discover s� � ��������-� !�A��1�v��{�H���t�s�{�q��u��|�X��Q�4�D��>�)��
�
�4� � !� ���
��-�D�S�Z�Z��-�-��
r c � � g }t j rt j }n/t j sd}n| j }|j � |D ]'