Skip to content

Commit 1855f2c

Browse files
committed
lib: Handle get processes with valid cpu usage
1 parent 115eb33 commit 1855f2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

discordbotlinuxmonitor/discordbotlinuxmonitor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
__license__ = "MIT License"
3434
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
3535
__python_version__ = "3.+"
36-
__version__ = "1.3.1 (2024/09/19)"
36+
__version__ = "1.4.0 (2024/10/07)"
3737
__status__ = "Usable for any Linux project"
3838

3939
# pyright: reportMissingTypeStubs=false
@@ -750,7 +750,7 @@ async def list_processes(self, interaction: discord.Interaction) -> None:
750750

751751
try:
752752
# Récupérer la liste des processus actifs
753-
out_msg: str = self.monitoring.get_ordered_processes()
753+
out_msg: str = await self.monitoring.get_ordered_processes()
754754

755755
# Répondre à l'utilisateur
756756
await self._interaction_followup_send_no_limit(interaction=interaction, msg=out_msg)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="DiscordBotLinuxMonitor",
9-
version="1.3.1",
9+
version="1.4.0",
1010
description="From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)",
1111
long_description=readme,
1212
long_description_content_type="text/markdown",
@@ -36,7 +36,7 @@
3636
keywords='discord bot warning info linux monitor monitoring server service port ping ssl certificate disk folder cpu ram swap usage ip connection',
3737
platforms='Linux',
3838
install_requires=[
39-
"linuxmonitor~=1.3.0", # follows the {MAJOR}.{MINOR}.x version range (because LinuxMonitor and DiscordBotLinuxMonitor are tightly coupled and should have same major and minor version)
39+
"linuxmonitor~=1.4.0", # follows the {MAJOR}.{MINOR}.x version range (because LinuxMonitor and DiscordBotLinuxMonitor are tightly coupled and should have same major and minor version)
4040
"discord.py",
4141
"typing",
4242
"asyncio",

0 commit comments

Comments
 (0)