AlkantarClanX12

Your IP : 13.58.38.184


Current Path : /lib/python3.6/site-packages/iotop/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/iotop/__pycache__/vmstat.cpython-36.pyc

3

B��Q�@sGdd�de�ZdS)c@s$eZdZdd�Zdd�Zdd�ZdS)�VmStatcCstd�|_|j�|_dS)Nz/proc/vmstat)�open�vmstat_file�read�vmstat)�self�r�/usr/lib/python3.6/vmstat.py�__init__s
zVmStat.__init__cCsddd�}x"|jD]}|jd�r||�}PqWx"|jD]}|jd�r4||�}Pq4W|jjd�||fS)NcSst|j�d�dS)N�i)�int�split)�linerrr�extractszVmStat.read.<locals>.extractzpgpgin zpgpgout �)r�
startswith�seek)rrr
ZpgpginZpgpgoutrrrrs

zVmStat.readcCs6|j�}|d|jd|d|jdf}||_|S)Nrr
)rr)rZnow�deltarrrr)s$zVmStat.deltaN)�__name__�
__module__�__qualname__r	rrrrrrrsrN)�objectrrrrr�<module>s