| Server IP : 138.197.107.151 / Your IP : 216.73.217.120 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/landscape/lib/__pycache__/ |
Upload File : |
�
�~�e� � �j � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlm Z G d� d� Z
d � Zy)
� N)�datetime)� timedelta)�sysstats)�detect_jiffies)�to_timestampc �, � e Zd ZdZ dd�Zd� Zd� Zy)�ProcessInformationaI
@param proc_dir: The directory to use for process information.
@param jiffies: The value to use for jiffies per second.
@param boot_time: An alternate value to use for the last boot time. If
None, the system last boot time will be used.
@param uptime: The uptime value to use (for unit tests only).
Nc �� � |�"t j � j � }|�t j |� }|| _ || _ |xs
t � | _ || _ y )N)
r � BootTimes�get_last_boot_timer �utcfromtimestamp�
_boot_time� _proc_dirr �_jiffies_per_sec�_uptime)�self�proc_dir�jiffies� boot_time�uptimes �7/usr/lib/python3/dist-packages/landscape/lib/process.py�__init__zProcessInformation.__init__ s\ � � �� �*�*�,�?�?�A�I�� � �1�1�)�<�I�#���!��� '� ;�>�+;������ c # � K � t j | j � D ]&