Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : monitor_net.cpython-36.opt-1.pyc
3

�<�e��@s<ddlZddlZddlZddlmZGdd�dejj�ZdS)�N)�ethcardc@s<eZdZedd��Zedd��Zedd��Zedd��Zd	S)
�
NetMonitorcCsjg}x6tjd�D](\}}}|jd�r|jd�r||7}qWt|�|_x|D]}ddddg|j|<qLWdS)Nz/sys/devicesz/netz/virtual/net�0)�os�walk�endswith�setZ_available_devices�_load)�clsZ	available�root�dirs�files�dev�r�!/usr/lib/python3.6/monitor_net.py�_init_available_devicess

z"NetMonitor._init_available_devicescCstd|d�S)Ng333333�?i�g333333�@g333333#A)�int)r
Zspeedrrr�
_calcspeedszNetMonitor._calcspeedcCs\ddddg}xJt|�D]>\}}td|d|��}|j�j�|j||<WdQRXqWdS)NZrx_bytesZ
rx_packetsZtx_bytesZ
tx_packetsz/sys/class/net/z/statistics/)�	enumerate�open�read�stripr	)r
rr
�i�fZstatfilerrr�_updateStatszNetMonitor._updateStatcCsx|jD]}|j|�qWdS)N)Z_updating_devicesr)r
Zdevicerrr�update$szNetMonitor.updateN)�__name__�
__module__�__qualname__�classmethodrrrrrrrrrs
r)	Ztuned.monitorsZtunedr�reZtuned.utils.nettoolrZmonitorsZMonitorrrrrr�<module>s
© 2025 XylotrechusZ