/usr/share/cagefs-skeleton/lib/python3.9/site-packages/glances/__pycache__
a ���c� � @ s8 d Z ddlZddlmZ ddlmZ G dd� de�ZdS )zThe stats server manager.� N)�GlancesStats)�loggerc s@ e Zd ZdZd� fdd� Zd� fdd� Zdd� Zd d � Z� ZS ) �GlancesStatsServerz:This class stores, updates and gives stats for the server.Nc s. t t| �j||d� t�t�| _t�d� d S )N)�config�argsz/Disable extended processes stats in server mode) �superr �__init__�collections�defaultdict�dict� all_statsr �info)�selfr r �� __class__� �8/usr/lib/python3.9/site-packages/glances/stats_server.pyr s zGlancesStatsServer.__init__c s4 |pi }t t| ��� | jd �� | �|�| _dS )zUpdate the stats.ZprocesscountN)r r �update�_pluginsZdisable_extended� _set_statsr �r Zinput_statsr r r r ! s zGlancesStatsServer.updatec s � fdd�� j D �S )z%Set the stats to the input_stats one.c s* i | ]"}� j | �� r|� j | �� �qS r )r Z is_enabledZget_raw)�.0�p�r r r � <dictcomp>1 � z1GlancesStatsServer._set_stats.<locals>.<dictcomp>)r r r r r r . s zGlancesStatsServer._set_statsc C s | j S )zReturn the stats as a list.)r r r r r �getAll3 s zGlancesStatsServer.getAll)NN)N) �__name__� __module__�__qualname__�__doc__r r r r � __classcell__r r r r r s r )r r Z glances.statsr Zglances.loggerr r r r r r �<module> s
.
Edit
..
Edit
__init__.cpython-39.opt-1.pyc
Edit
__init__.cpython-39.pyc
Edit
__main__.cpython-39.opt-1.pyc
Edit
__main__.cpython-39.pyc
Edit
actions.cpython-39.opt-1.pyc
Edit
actions.cpython-39.pyc
Edit
amps_list.cpython-39.opt-1.pyc
Edit
amps_list.cpython-39.pyc
Edit
attribute.cpython-39.opt-1.pyc
Edit
attribute.cpython-39.pyc
Edit
autodiscover.cpython-39.opt-1.pyc
Edit
autodiscover.cpython-39.pyc
Edit
client.cpython-39.opt-1.pyc
Edit
client.cpython-39.pyc
Edit
client_browser.cpython-39.opt-1.pyc
Edit
client_browser.cpython-39.pyc
Edit
compat.cpython-39.opt-1.pyc
Edit
compat.cpython-39.pyc
Edit
config.cpython-39.opt-1.pyc
Edit
config.cpython-39.pyc
Edit
cpu_percent.cpython-39.opt-1.pyc
Edit
cpu_percent.cpython-39.pyc
Edit
events.cpython-39.opt-1.pyc
Edit
events.cpython-39.pyc
Edit
filter.cpython-39.opt-1.pyc
Edit
filter.cpython-39.pyc
Edit
folder_list.cpython-39.opt-1.pyc
Edit
folder_list.cpython-39.pyc
Edit
globals.cpython-39.opt-1.pyc
Edit
globals.cpython-39.pyc
Edit
history.cpython-39.opt-1.pyc
Edit
history.cpython-39.pyc
Edit
logger.cpython-39.opt-1.pyc
Edit
logger.cpython-39.pyc
Edit
main.cpython-39.opt-1.pyc
Edit
main.cpython-39.pyc
Edit
outdated.cpython-39.opt-1.pyc
Edit
outdated.cpython-39.pyc
Edit
password.cpython-39.opt-1.pyc
Edit
password.cpython-39.pyc
Edit
password_list.cpython-39.opt-1.pyc
Edit
password_list.cpython-39.pyc
Edit
ports_list.cpython-39.opt-1.pyc
Edit
ports_list.cpython-39.pyc
Edit
processes.cpython-39.opt-1.pyc
Edit
processes.cpython-39.pyc
Edit
programs.cpython-39.opt-1.pyc
Edit
programs.cpython-39.pyc
Edit
secure.cpython-39.opt-1.pyc
Edit
secure.cpython-39.pyc
Edit
server.cpython-39.opt-1.pyc
Edit
server.cpython-39.pyc
Edit
snmp.cpython-39.opt-1.pyc
Edit
snmp.cpython-39.pyc
Edit
standalone.cpython-39.opt-1.pyc
Edit
standalone.cpython-39.pyc
Edit
static_list.cpython-39.opt-1.pyc
Edit
static_list.cpython-39.pyc
Edit
stats.cpython-39.opt-1.pyc
Edit
stats.cpython-39.pyc
Edit
stats_client.cpython-39.opt-1.pyc
Edit
stats_client.cpython-39.pyc
Edit
stats_client_snmp.cpython-39.opt-1.pyc
Edit
stats_client_snmp.cpython-39.pyc
Edit
stats_server.cpython-39.opt-1.pyc
Edit
stats_server.cpython-39.pyc
Edit
thresholds.cpython-39.opt-1.pyc
Edit
thresholds.cpython-39.pyc
Edit
timer.cpython-39.opt-1.pyc
Edit
timer.cpython-39.pyc
Edit
web_list.cpython-39.opt-1.pyc
Edit
web_list.cpython-39.pyc
Edit
webserver.cpython-39.opt-1.pyc
Edit
webserver.cpython-39.pyc
Edit