HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/local/lib/python3.6/site-packages/agent360/plugins/__pycache__/gpu.cpython-36.pyc
3

3	Eg��@s8ddlZddlZGdd�dej�Zedkr4e�j�dS)�Nc@seZdZdZdd�ZdS)�PluginZgpucGs�i}tjdkr�yddl}Wn
dSyT|jdd�}|j�}x:|D]2}|jdkrB|jdkrB|j||jj	d	d
�j
d
�<qBWWn
dS|S)za
        expirimental plugin used to collect GPU load from OpenHardWareMonitor (Windows)
        �win32rNzwmi module not installed.zroot\OpenHardwareMonitor)�	namespace�LoadzGPU Core�/�-z7Could not fetch GPU Load data from OpenHardwareMonitor.)�sys�platform�wmiZWMIZSensorZ
SensorType�Name�ValueZParent�replace�strip)�selfZunused�datar
�wZtemperature_infosZsensor�r�=/root/tmp/pip-build-f6rmvwrq/agent360/agent360/plugins/gpu.py�run	s

"z
Plugin.runN)�__name__�
__module__�__qualname__rrrrrrsr�__main__)ZpluginsrZ
BasePluginrr�executerrrr�<module>s