Server IP : 184.154.167.98 / Your IP : 3.142.199.54 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/iotop/__pycache__/ |
Upload File : |
3 B��Q � @ s G d d� de �ZdS )c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�VmStatc C s t d�| _| j� | _d S )Nz/proc/vmstat)�open�vmstat_file�read�vmstat)�self� r �/usr/lib/python3.6/vmstat.py�__init__ s zVmStat.__init__c C sd dd� }x"| j D ]}|jd�r||�}P qW x"| j D ]}|jd�r4||�}P q4W | j jd� ||fS )Nc S s t | j� d �d S )N� i )�int�split)�liner r r �extract s zVmStat.read.<locals>.extractzpgpgin zpgpgout � )r � startswith�seek)r r r ZpgpginZpgpgoutr r r r s zVmStat.readc C s6 | j � }|d | jd |d | jd f}|| _|S )Nr r )r r )r Znow�deltar r r r ) s $zVmStat.deltaN)�__name__� __module__�__qualname__r r r r r r r r s r N)�objectr r r r r �<module> s