mirror of
https://github.com/HorlogeSkynet/archey4
synced 2024-11-24 04:00:10 +01:00
16 lines
384 B
Python
16 lines
384 B
Python
"""Processes entry class"""
|
|
|
|
from archey.entry import Entry
|
|
from archey.processes import Processes as ProcessesUtil
|
|
|
|
|
|
class Processes(Entry):
|
|
"""
|
|
Simple wrapper to `archey.processes` to provide the number of running processes as an entry.
|
|
"""
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
super().__init__(*args, **kwargs)
|
|
|
|
self.value = ProcessesUtil().number
|