| 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�
Read and Write average wait times of block devices.
Displays the average read and write wait times of block devices
c �� � d| _ d| _ d| _ d| _ t j d� | _ | j d� d| _ t dddd�� | _
y ) N)�rawait�wawait�f� � zI^([hsv]d[a-z]+\d+|cciss/c\d+d\d+p\d+|dm-\d+|md\d+|mmcblk\d+p\d0|VxVM\d+)$z/proc/diskstats� ��rd_ios�wr_ios�rd_ticks�wr_ticks)�nick�type�width�scale�re�compile�
diskfilter�open�cols�dict�struct��selfs �#/usr/share/dstat/dstat_disk_wait.py�__init__zdstat_plugin.__init__ sU � �(�� ��� ���
���
��*�*�%p�q���� � �#�$��� ��1�Q��Q�H��� c �� � g }| j � D ]4 }t |� dk r�|dd dgdz k( r�|d }|j |� �6 |D ] }|j |� � |st d� �|S )N�
� �0� � z*No suitable block devices found to monitor)�
splitlines�len�append� Exception)r �objlist�ret�l�name�items r �discoverzdstat_plugin.discover s� � ������"� �A��1�v��{�H����u�����#�X��Q�4�D��J�J�t�� �
�-�D�S�Z�Z��-�-���H�I�I��
r c �� � g }t j rt j }n�g }t j d� D �cg c]! }t j j |� ��# }}| j D ]4 }| j j |� r�||vr�$|j |� �6 |j � |D ]"